Skip to content

Commit

Permalink
Merge pull request #11882 from eileenmcnaughton/report_filter
Browse files Browse the repository at this point in the history
Fix report form isTableSelected to treat relative date filters as filters
  • Loading branch information
eileenmcnaughton authored Mar 28, 2018
2 parents 778e350 + 3d8f552 commit 7aed41f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -3996,10 +3996,11 @@ public function selectedTables() {
}
if (array_key_exists('filters', $table)) {
foreach ($table['filters'] as $filterName => $filter) {
if (!empty($this->_params["{$filterName}_value"]) ||
CRM_Utils_Array::value("{$filterName}_op", $this->_params) ==
'nll' ||
CRM_Utils_Array::value("{$filterName}_op", $this->_params) ==
if (!empty($this->_params["{$filterName}_value"])
|| !empty($this->_params["{$filterName}_relative"])
|| CRM_Utils_Array::value("{$filterName}_op", $this->_params) ==
'nll'
|| CRM_Utils_Array::value("{$filterName}_op", $this->_params) ==
'nnll'
) {
$this->_selectedTables[] = $tableName;
Expand Down

0 comments on commit 7aed41f

Please sign in to comment.