From c2cf659d17ee44fbe04dae5bb7128244a1b7d9ef Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 2 Apr 2014 16:24:57 +0530 Subject: [PATCH] HR-322 minor change --- CRM/Core/BAO/CustomField.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index 8ad18fdff0..2d1b992071 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -889,9 +889,8 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { $field->option_group_id ); } - else { - CRM_Utils_Hook::customFieldOptions($field->id, $selectOption, FALSE, $selectAttributes); - } + //HR-322, extend Select type custom field which use customFieldOptions hook to populate its option + CRM_Utils_Hook::customFieldOptions($field->id, $selectOption, FALSE, $selectAttributes); $qf->add('select', $elementName, $label, array('' => $placeholder) + $selectOption, -- 2.25.1