Merge branch '4.6' into master
authorColeman Watts <coleman@civicrm.org>
Tue, 11 Aug 2015 17:15:26 +0000 (13:15 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 11 Aug 2015 17:15:26 +0000 (13:15 -0400)
1  2 
CRM/Campaign/Page/AJAX.php
CRM/Contact/Page/AJAX.php
CRM/Core/Error.php
CRM/Financial/Page/AJAX.php

Simple merge
index a2a9b3bd9c54559ebc3f2dce95ba5092186e3795,fc081a466c4aa3ef84b978ff903ef18c5d952d28..505dfa5e5a46e27eb39285f31db88408bc98b3ab
@@@ -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
Simple merge
Simple merge