From 18f1f700b90c69c5cbe558b4002dfb74459507e9 Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Wed, 29 Apr 2015 19:17:51 -0400 Subject: [PATCH] CRM-15375 - cleaning the code --- CRM/Core/I18n/Form.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Core/I18n/Form.php b/CRM/Core/I18n/Form.php index db1e77f5ea..df679e4ecf 100644 --- a/CRM/Core/I18n/Form.php +++ b/CRM/Core/I18n/Form.php @@ -83,11 +83,9 @@ class CRM_Core_I18n_Form extends CRM_Core_Form { } if ($widget['type'] == 'RichTextEditor') { $attributes['class'] .= ' collapsed'; - $this->add('wysiwyg', $name, $languages[$locale], $attributes, $required); - } - else { - $this->add($widget['type'], $name, $languages[$locale], $attributes, $required); + $widget['type'] = 'wysiwyg'; } + $this->add($widget['type'], $name, $languages[$locale], $attributes, $required); $this->_defaults[$name] = $dao->$locale; } -- 2.25.1