From a48181497ee5ceec17fcc598cb1c77e7997f6c51 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 11 Apr 2019 14:03:36 +0530 Subject: [PATCH] (dev/core#865) Result filter criteria doesn't show IS NULL/IS NOT NULL for operations --- CRM/Report/Form.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.25.1