From: yashodha Date: Thu, 11 Apr 2019 08:33:36 +0000 (+0530) Subject: (dev/core#865) Result filter criteria doesn't show IS NULL/IS NOT NULL for operations X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a48181497ee5ceec17fcc598cb1c77e7997f6c51;p=civicrm-core.git (dev/core#865) Result filter criteria doesn't show IS NULL/IS NOT NULL for operations --- diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index a136d9ef6c..ad285a25dc 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -1301,7 +1301,10 @@ class CRM_Report_Form extends CRM_Core_Form { if (!empty($field['options']) || $fieldName == 'state_province_id' || $fieldName == 'county_id' ) { - $element = $this->addElement('select', "{$fieldName}_op", ts('Operator:'), $operations); + $this->addElement('select', "{$fieldName}_op", ts('Operator:'), $operations, + array('onchange' => "return showHideMaxMinVal( '$fieldName', this.value );") + ); + if (count($operations) <= 1) { $element->freeze(); } @@ -1776,6 +1779,8 @@ class CRM_Report_Form extends CRM_Core_Form { $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;