From fac25b6ba4db7871d33d941c00dda4457d7f452b Mon Sep 17 00:00:00 2001 From: Muhammad Shahrukh <> Date: Thu, 25 Jul 2024 17:25:17 +0500 Subject: [PATCH] COMCL-644: Fix contribution settings page --- .../BuildForm/AddQuotationsNotesToContributionSettings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Civicase/Hook/BuildForm/AddQuotationsNotesToContributionSettings.php b/CRM/Civicase/Hook/BuildForm/AddQuotationsNotesToContributionSettings.php index f7d243b98..c9127a6dd 100644 --- a/CRM/Civicase/Hook/BuildForm/AddQuotationsNotesToContributionSettings.php +++ b/CRM/Civicase/Hook/BuildForm/AddQuotationsNotesToContributionSettings.php @@ -49,11 +49,13 @@ public function addQuotationsNoteField(CRM_Core_Form &$form) { 'weight' => 5, 'description' => ts('Enter note or message to be displyaed on quotations'), 'attributes' => ['rows' => 2, 'cols' => 40], + 'name' => $fieldName, + 'quick_form_type' => 'Element', ], ]; $form->add('wysiwyg', $fieldName, $field[$fieldName]['title'], $field[$fieldName]['attributes']); - $form->assign('htmlFields', array_merge($form->get_template_vars('htmlFields'), $field)); + $form->assign('fields', array_values(array_merge($form->getTemplateVars('fields'), $field))); $value = Civi::settings()->get($fieldName) ?? NULL; $form->setDefaults(array_merge($form->_defaultValues, [$fieldName => $value]));