From 91f70e700f46540d10b4807b43a2fa41436ade53 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 1 Dec 2016 17:06:39 -0500 Subject: [PATCH] CRM-19709 - Fix double-escaped quicksearch results --- CRM/Utils/API/AbstractFieldCoder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/API/AbstractFieldCoder.php b/CRM/Utils/API/AbstractFieldCoder.php index d6e3012ce8..c6cd94bcc8 100644 --- a/CRM/Utils/API/AbstractFieldCoder.php +++ b/CRM/Utils/API/AbstractFieldCoder.php @@ -128,7 +128,7 @@ abstract class CRM_Utils_API_AbstractFieldCoder implements API_Wrapper { */ public function toApiOutput($apiRequest, $result) { $lowerAction = strtolower($apiRequest['action']); - if ($apiRequest['version'] == 3 && in_array($lowerAction, array('get', 'create', 'setvalue'))) { + if ($apiRequest['version'] == 3 && in_array($lowerAction, array('get', 'create', 'setvalue', 'getquick'))) { foreach ($result as $key => $value) { // Don't apply escaping to API control parameters (e.g. 'api.foo' or 'options.foo') // and don't apply to other skippable fields -- 2.25.1