Skip to content

Commit

Permalink
Fix #10410 - Check report has been loaded before setting user parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
simonr44 authored and jack7anderson7 committed May 14, 2024
1 parent 8735575 commit b1ef106
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function __construct($id, $def = array())
}
if (!empty($def['aor_report_id'])) {
$this->report = BeanFactory::getBean('AOR_Reports', $def['aor_report_id']);
$this->report->user_parameters = $this->params;
if($this->report !== false) {
$this->report->user_parameters = $this->params;
}
}
$this->onlyCharts = !empty($def['onlyCharts']);
$this->charts = !empty($def['charts']) ? $def['charts'] : array();
Expand Down

0 comments on commit b1ef106

Please sign in to comment.