Skip to content
Snippets Groups Projects
Commit fc0bfba4 authored by deepak-srivastava's avatar deepak-srivastava
Browse files

Merge pull request #1187 from deepak-srivastava/search

CRM-12912, exposing hook injected fields in profiles
parents 4e226832 61750d67
Branches
Tags
No related merge requests found
......@@ -824,6 +824,9 @@ SELECT id
'Organization' => CRM_Contact_BAO_Contact::importableFields('Organization', FALSE, FALSE, TRUE, TRUE, TRUE),
);
// include hook injected fields
$fields['Contact'] = array_merge($fields['Contact'], CRM_Contact_BAO_Query_Hook::singleton()->getFields());
// add current employer for individuals
$fields['Individual']['current_employer'] = array(
'name' => 'organization_name',
......
......@@ -149,6 +149,8 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
$this->_fields = array_merge(CRM_Event_BAO_Query::getParticipantFields(), $this->_fields);
}
$this->_fields = array_merge($this->_fields, CRM_Contact_BAO_Query_Hook::singleton()->getFields());
$this->_selectFields = array();
foreach ($this->_fields as $name => $field) {
// lets skip note for now since we dont support it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment