* If pivot have not fieldSettings, try to init it. if pivot filters !is_array(), try to json_decode it. Compatibility screen/model use processPivot.
This commit is contained in:
@@ -361,7 +361,7 @@ class screenModel extends model
|
||||
foreach($yStats as $index => $dataList)
|
||||
{
|
||||
$field = zget($fields, $metrics[$index]);
|
||||
$fieldName = $field->name;
|
||||
$fieldName = $field->name;
|
||||
if(isset($langs[$field->field]) and !empty($langs[$field->field][$clientLang])) $fieldName = $langs[$field->field][$clientLang];
|
||||
$field = $fieldName . '(' . zget($this->lang->chart->aggList, $aggs[$index]) . ')';
|
||||
$dimensions[] = $field;
|
||||
@@ -514,7 +514,7 @@ class screenModel extends model
|
||||
foreach($yStats as $index => $dataList)
|
||||
{
|
||||
$field = zget($fields, $metrics[$index]);
|
||||
$fieldName = $field->name;
|
||||
$fieldName = $field->name;
|
||||
|
||||
if(isset($langs[$field->field]) and !empty($langs[$field->field][$clientLang])) $fieldName = $langs[$field->field][$clientLang];
|
||||
$field = $fieldName . '(' . zget($this->lang->chart->aggList, $aggs[$index]) . ')';
|
||||
|
||||
Reference in New Issue
Block a user