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]));