From fd379059e62023de9b424c5e3c0a09842b0ea9ab Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 29 Apr 2015 19:57:18 -0600 Subject: [PATCH] CRM-16354 - Lookup wysiwyg by name not label --- CRM/Core/Resources.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index 7af9603017..dd4cc0bd2e 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -716,11 +716,9 @@ class CRM_Core_Resources { "js/crm.ajax.js", ); // add wysiwyg editor - $editorID = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, - 'editor_id' - ); + $editorID = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'editor_id'); $editor = CRM_Utils_Array::value($editorID, - CRM_Core_OptionGroup::values('wysiwyg_editor') + CRM_Core_OptionGroup::values('wysiwyg_editor', FALSE, FALSE, FALSE, NULL, 'name') ); $items[] = "js/wysiwyg/crm.wysiwyg.js"; if ($editor == "CKEditor") { -- 2.25.1