From c5185dd8a9b49a92b7f071ab1961ca1d1997bb5d Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 2 Jul 2018 16:17:38 +0530 Subject: [PATCH] (dev/core#223) Expose prefix and suffix in reports --- CRM/Report/Form.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 802c4319c9..3d1ebc3456 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -5374,6 +5374,22 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'title' => $options['prefix_label'] . ts('Nick Name'), 'is_fields' => TRUE, ), + $options['prefix'] . 'prefix_id' => array( + 'name' => 'prefix_id', + 'title' => $options['prefix_label'] . ts('Prefix'), + 'options' => CRM_Contact_BAO_Contact::buildOptions('prefix_id'), + 'operatorType' => CRM_Report_Form::OP_MULTISELECT, + 'is_fields' => TRUE, + 'is_filters' => TRUE, + ), + $options['prefix'] . 'suffix_id' => array( + 'name' => 'suffix_id', + 'title' => $options['prefix_label'] . ts('Suffix'), + 'options' => CRM_Contact_BAO_Contact::buildOptions('suffix_id'), + 'operatorType' => CRM_Report_Form::OP_MULTISELECT, + 'is_fields' => TRUE, + 'is_filters' => TRUE, + ), $options['prefix'] . 'gender_id' => array( 'name' => 'gender_id', 'title' => $options['prefix_label'] . ts('Gender'), -- 2.25.1