From: Sunil Pawar Date: Thu, 14 Dec 2017 08:10:04 +0000 (+0530) Subject: Dedule rule form : get contact type name instead of label X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d0e19670f968f8317a470211a8c9eee38c1b9260;p=civicrm-core.git Dedule rule form : get contact type name instead of label --- diff --git a/CRM/Contact/Form/DedupeRules.php b/CRM/Contact/Form/DedupeRules.php index 3491cfb79f..9f032958bf 100644 --- a/CRM/Contact/Form/DedupeRules.php +++ b/CRM/Contact/Form/DedupeRules.php @@ -58,7 +58,7 @@ class CRM_Contact_Form_DedupeRules extends CRM_Admin_Form { } $this->_options = CRM_Core_SelectValues::getDedupeRuleTypes(); $this->_rgid = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, 0); - $contactTypes = civicrm_api3('Contact', 'getOptions', array('field' => "contact_type")); + $contactTypes = civicrm_api3('Contact', 'getOptions', array('field' => "contact_type", 'context' => "validate")); $contactType = CRM_Utils_Request::retrieve('contact_type', 'String', $this, FALSE, 0); if (CRM_Utils_Array::value($contactType, $contactTypes['values'])) { $this->_contactType = CRM_Utils_Array::value($contactType, $contactTypes['values']);