From ece8de2d2679c840d38c68176ad884182ed416b3 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 19 Sep 2018 15:26:49 -0400 Subject: [PATCH] Skip html encoding rich-text fields --- CRM/Utils/API/HTMLInputCoder.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Utils/API/HTMLInputCoder.php b/CRM/Utils/API/HTMLInputCoder.php index 903b2fa5e5..817842a904 100644 --- a/CRM/Utils/API/HTMLInputCoder.php +++ b/CRM/Utils/API/HTMLInputCoder.php @@ -111,6 +111,10 @@ class CRM_Utils_API_HTMLInputCoder extends CRM_Utils_API_AbstractFieldCoder { 'operator', 'content', // CRM-20468 ); + $custom = CRM_Core_DAO::executeQuery('SELECT id FROM civicrm_custom_field WHERE html_type = "RichTextEditor"'); + while ($custom->fetch()) { + $this->skipFields[] = 'custom_' . $custom->id; + } } return $this->skipFields; } -- 2.25.1