CRM-15926 - CRM_Contact_Page_AJAX - Output text headers
authorTim Otten <totten@civicrm.org>
Tue, 10 Feb 2015 13:20:53 +0000 (05:20 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 10 Feb 2015 13:22:01 +0000 (05:22 -0800)
CRM/Contact/Page/AJAX.php

index 3e9f3c1600532cf257921f13cfa1fa7c676b81ea..d8b194c29112339fc3b12c497919ae6d14f79bfb 100644 (file)
@@ -523,6 +523,7 @@ ORDER BY sort_name ";
    *
    */
   static function deleteCustomValue() {
+    header('Content-Type: text/plain');
     $customValueID = CRM_Utils_Type::escape($_REQUEST['valueID'], 'Positive');
     $customGroupID = CRM_Utils_Type::escape($_REQUEST['groupID'], 'Positive');
 
@@ -631,6 +632,8 @@ ORDER BY sort_name ";
       list($displayName,
         $userEmail
       ) = CRM_Contact_BAO_Contact_Location::getEmailDetails($contactID);
+
+      header('Content-Type: text/plain');
       if ($userEmail) {
         echo $userEmail;
       }