(dev/core#223) Expose prefix and suffix in reports
authoryashodha <yashodha@cividesk.com>
Mon, 2 Jul 2018 10:47:38 +0000 (16:17 +0530)
committeryashodha <yashodha@cividesk.com>
Mon, 2 Jul 2018 10:47:38 +0000 (16:17 +0530)
CRM/Report/Form.php

index 802c4319c91f7350eac415b1d8bb1cd715ee0b9f..3d1ebc34562439e7b4829c98362c97dde192d74a 100644 (file)
@@ -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'),