Skip to content

Commit

Permalink
Merge pull request #14028 from yashodha/dev-865
Browse files Browse the repository at this point in the history
(dev/core#865) Result filter criteria doesn't show IS NULL/IS NOT NUL…
  • Loading branch information
eileenmcnaughton authored Apr 12, 2019
2 parents 1fbb9ca + d59b14a commit 55afe41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,10 @@ public function addFilters() {
if (!empty($field['options']) ||
$fieldName == 'state_province_id' || $fieldName == 'county_id'
) {
$element = $this->addElement('select', "{$fieldName}_op", ts('Operator:'), $operations);
$element = $this->addElement('select', "{$fieldName}_op", ts('Operator:'), $operations,
array('onchange' => "return showHideMaxMinVal( '$fieldName', this.value );")
);

if (count($operations) <= 1) {
$element->freeze();
}
Expand Down Expand Up @@ -1776,6 +1779,8 @@ public function getOperationPair($type = "string", $fieldName = NULL) {
$result = [
'in' => ts('Is one of'),
'notin' => ts('Is not one of'),
'nll' => ts('Is empty (Null)'),
'nnll' => ts('Is not empty (Null)'),
];
return $result;

Expand Down

0 comments on commit 55afe41

Please sign in to comment.