From effdc2d96183f5b7bff890ce39f9e0e20305677d Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 10 Feb 2015 05:20:53 -0800 Subject: [PATCH] CRM-15926 - CRM_Contact_Page_AJAX - Output text headers --- CRM/Contact/Page/AJAX.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.25.1