Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tjreports/site/models/reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,11 @@ protected function populateState($ordering = '', $direction = 'ASC')
$reportParams = $this->getReportParams($reportId);

$colToshow = $reportParams->get("colToshow");
$piiColumns = array_flip($reportParams->get("piiColumns"));

if ($reportParams->get("piiColumns"))
{
$piiColumns = array_flip($reportParams->get("piiColumns"));
}

if (!empty($piiColumns))
{
Expand Down
6 changes: 5 additions & 1 deletion tjreports/site/views/reports/view.base.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ public function processData($type = 'html')
$this->headerLevel = $this->model->headerLevel;

// Array_key - defaultColToHide column are present then get the key as value.
$this->defaultColToHide = array_keys($this->model->getState('defaultColToHide'));
if ($this->model->getState('defaultColToHide'))
{
$this->defaultColToHide = array_keys($this->model->getState('defaultColToHide'));
}

$this->columns = $this->model->columns;

/* Array_merge - here colToshow means get all true value array so want to mearg defaultColToHide column and then using
Expand Down