* [bug] If cols and data are empty, set them as empty array.
This commit is contained in:
@@ -85,14 +85,14 @@ class pivot extends control
|
||||
$drillFields = json_decode(base64_decode($drillFields), true);
|
||||
$filterValues = json_decode(base64_decode($filterValues), true);
|
||||
|
||||
$this->view->title = $this->lang->pivot->step3->drillView;
|
||||
$cols = $this->pivot->getDrillCols($drill->object);
|
||||
$datas = $this->pivot->getDrillDatas($drill, $drillFields);
|
||||
|
||||
$result = $this->pivot->processColData($drill->object, $cols, $datas);
|
||||
$cols = $result['cols'];
|
||||
$datas = $result['data'];
|
||||
$cols = isset($result['cols']) ? $result['cols'] : array();
|
||||
$datas = isset($result['data']) ? $result['data'] : array();
|
||||
|
||||
$this->view->title = $this->lang->pivot->step3->drillView;
|
||||
$this->view->cols = $cols;
|
||||
$this->view->datas = $datas;
|
||||
$this->display();
|
||||
|
||||
Reference in New Issue
Block a user