Revert "Revert "* Filter metric's data for screen designer.""
This reverts commit fa7a08b9b1.
This commit is contained in:
@@ -168,14 +168,17 @@ class screen extends control
|
||||
$mergeFilters[] = $filter;
|
||||
}
|
||||
|
||||
if($table == TABLE_PIVOT)
|
||||
if($type != 'metric')
|
||||
{
|
||||
list($sql, $filterFormat) = $this->loadModel($type)->getFilterFormat($chart->sql, $mergeFilters);
|
||||
$chart->sql = $sql;
|
||||
}
|
||||
else
|
||||
{
|
||||
$filterFormat = $this->loadModel($type)->getFilterFormat($mergeFilters);
|
||||
if($table == TABLE_PIVOT)
|
||||
{
|
||||
list($sql, $filterFormat) = $this->loadModel($type)->getFilterFormat($chart->sql, $mergeFilters);
|
||||
$chart->sql = $sql;
|
||||
}
|
||||
else
|
||||
{
|
||||
$filterFormat = $this->loadModel($type)->getFilterFormat($mergeFilters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user