Skip to content

Commit

Permalink
COMCL-644: Fix contribution settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Shahrukh committed Jul 25, 2024
1 parent 83a8e87 commit fac25b6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]));

Expand Down

0 comments on commit fac25b6

Please sign in to comment.