(dev/core#865) Result filter criteria doesn't show IS NULL/IS NOT NULL for operations
authoryashodha <yashodha@cividesk.com>
Thu, 11 Apr 2019 08:33:36 +0000 (14:03 +0530)
committeryashodha <yashodha@cividesk.com>
Thu, 11 Apr 2019 08:33:36 +0000 (14:03 +0530)
CRM/Report/Form.php

index a136d9ef6c8bb2b8622817f6f6ef667b78d20bda..ad285a25dc397f7e3e946e6153869f978380247c 100644 (file)
@@ -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;