From: Coleman Watts Date: Tue, 11 Aug 2015 17:15:26 +0000 (-0400) Subject: Merge branch '4.6' into master X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3b49385c20114fac86e200e28224bc7c1999e8d5;p=civicrm-core.git Merge branch '4.6' into master --- 3b49385c20114fac86e200e28224bc7c1999e8d5 diff --cc CRM/Contact/Page/AJAX.php index a2a9b3bd9c,fc081a466c..505dfa5e5a --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@@ -305,14 -305,13 +305,13 @@@ class CRM_Contact_Page_AJAX * Delete custom value. */ public static function deleteCustomValue() { - header('Content-Type: text/plain'); + CRM_Utils_System::setHttpHeader('Content-Type', 'text/plain'); $customValueID = CRM_Utils_Type::escape($_REQUEST['valueID'], 'Positive'); $customGroupID = CRM_Utils_Type::escape($_REQUEST['groupID'], 'Positive'); - + $contactId = CRM_Utils_Request::retrieve('contactId', 'Positive', CRM_Core_DAO::$_nullObject); CRM_Core_BAO_CustomValue::deleteCustomValue($customValueID, $customGroupID); - $contactId = CRM_Utils_Array::value('contactId', $_REQUEST); if ($contactId) { - echo CRM_Contact_BAO_Contact::getCountComponent('custom_' . $_REQUEST['groupID'], $contactId); + echo CRM_Contact_BAO_Contact::getCountComponent('custom_' . $customGroupID, $contactId); } // reset the group contact cache for this group