diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 98b0ed3e0e65..c65b3dd0d72d 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -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;