From: Tim Otten Date: Tue, 10 Feb 2015 13:20:53 +0000 (-0800) Subject: CRM-15926 - CRM_Contact_Page_AJAX - Output text headers X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=effdc2d96183f5b7bff890ce39f9e0e20305677d;p=civicrm-core.git CRM-15926 - CRM_Contact_Page_AJAX - Output text headers --- diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index 3e9f3c1600..d8b194c291 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -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; }