From d8cdb7e5828ab3e904902e06922337a1a6a6af83 Mon Sep 17 00:00:00 2001 From: Michael McAndrew Date: Thu, 15 Mar 2018 23:58:57 +0000 Subject: [PATCH] CiviExit expects an integer --- CRM/Contact/Page/AJAX.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index acd0d3d7a7..c463007bc5 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -61,7 +61,7 @@ class CRM_Contact_Page_AJAX { $cf = array(); CRM_Core_DAO::commonRetrieve('CRM_Core_DAO_CustomField', $params, $cf, $returnProperties); if (!$cf['id'] || !$cf['is_active'] || $cf['data_type'] != 'ContactReference') { - CRM_Utils_System::civiExit('error'); + CRM_Utils_System::civiExit(1); } if (!empty($cf['filter'])) { @@ -70,7 +70,7 @@ class CRM_Contact_Page_AJAX { $action = CRM_Utils_Array::value('action', $filterParams); if (!empty($action) && !in_array($action, array('get', 'lookup'))) { - CRM_Utils_System::civiExit('error'); + CRM_Utils_System::civiExit(1); } if (!empty($filterParams['group'])) { @@ -136,7 +136,7 @@ class CRM_Contact_Page_AJAX { $contact = civicrm_api('Contact', 'Get', $params); if (!empty($contact['is_error'])) { - CRM_Utils_System::civiExit('error'); + CRM_Utils_System::civiExit(1); } $contactList = array(); -- 2.25.1