From c7c343740ec43b36c5b8acefdbace53af90ff616 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 29 Jan 2023 19:12:35 +1300 Subject: [PATCH] Ensure operatorType is set --- CRM/Report/Form.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 2c56d5dd5c..ad9718e7f0 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -5497,6 +5497,12 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'type' => CRM_Utils_Type::T_BOOLEAN, 'is_fields' => FALSE, 'is_filters' => TRUE, + 'operatorType' => CRM_Report_Form::OP_SELECT, + 'options' => [ + '' => ts('Any'), + '0' => ts('No'), + '1' => ts('Yes'), + ], 'is_group_bys' => FALSE, ], $options['prefix'] . 'external_identifier' => [ @@ -5504,6 +5510,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'name' => 'external_identifier', 'is_fields' => TRUE, 'is_filters' => FALSE, + 'operatorType' => CRM_Report_Form::OP_STRING, 'is_group_bys' => FALSE, 'is_order_bys' => TRUE, ], @@ -5512,6 +5519,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'name' => 'preferred_language', 'is_fields' => TRUE, 'is_filters' => TRUE, + 'operatorType' => CRM_Report_Form::OP_STRING, 'is_group_bys' => TRUE, 'is_order_bys' => TRUE, ], @@ -5521,6 +5529,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'name' => 'preferred_communication_method', 'is_fields' => TRUE, 'is_filters' => FALSE, + 'operatorType' => CRM_Report_Form::OP_MULTISELECT, 'is_group_bys' => FALSE, 'is_order_bys' => FALSE, ], @@ -5614,6 +5623,11 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'type' => CRM_Utils_Type::T_BOOLEAN, 'is_fields' => FALSE, 'is_filters' => TRUE, + 'options' => [ + '' => ts('Any'), + '0' => ts('No'), + '1' => ts('Yes'), + ], 'is_group_bys' => FALSE, ], $options['prefix'] . 'job_title' => [ @@ -5707,6 +5721,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'type' => 1, 'is_fields' => TRUE, 'is_filters' => TRUE, + 'operatorType' => CRM_Report_Form::OP_STRING, 'operator' => 'like', 'is_order_bys' => TRUE, ], @@ -5715,6 +5730,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'name' => 'street_address', 'is_fields' => TRUE, 'is_filters' => TRUE, + 'operatorType' => CRM_Report_Form::OP_STRING, 'is_group_bys' => TRUE, ], $options['prefix'] . 'supplemental_address_1' => [ @@ -5738,6 +5754,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'type' => 1, 'is_order_bys' => TRUE, 'is_filters' => TRUE, + 'operatorType' => CRM_Report_Form::OP_STRING, 'is_fields' => TRUE, ], $options['prefix'] . 'street_unit' => [ @@ -5761,6 +5778,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'type' => 2, 'is_fields' => TRUE, 'is_filters' => TRUE, + 'operatorType' => CRM_Report_Form::OP_STRING, 'is_group_bys' => TRUE, 'is_order_bys' => TRUE, ], @@ -5770,6 +5788,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'type' => 2, 'is_fields' => TRUE, 'is_filters' => TRUE, + 'operatorType' => CRM_Report_Form::OP_STRING, 'is_group_bys' => TRUE, 'is_order_bys' => TRUE, ], -- 2.25.1