From e56fd67fa88338dce7c0d94c6432d5b4f56ea45f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 21 Dec 2014 15:08:25 -0500 Subject: [PATCH] Fix setting api in api explorer --- CRM/Core/BAO/Setting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Setting.php b/CRM/Core/BAO/Setting.php index e15812b769..e9392503c1 100644 --- a/CRM/Core/BAO/Setting.php +++ b/CRM/Core/BAO/Setting.php @@ -535,6 +535,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { 'IDS_user_agent', 'check_permissions', 'options', + 'prettyprint', ); $settingParams = array_diff_key($params, array_fill_keys($ignoredParams, TRUE)); $getFieldsParams = array('version' => 3); @@ -546,7 +547,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { $fields = civicrm_api3('setting','getfields', $getFieldsParams); $invalidParams = (array_diff_key($settingParams, $fields['values'])); if (!empty($invalidParams)) { - throw new api_Exception(implode(',', $invalidParams) . " not valid settings"); + throw new api_Exception(implode(',', array_keys($invalidParams)) . " not valid settings"); } if (!empty($settingParams)) { $filteredFields = array_intersect_key($settingParams, $fields['values']); -- 2.25.1