Skip to content

Commit

Permalink
Merge pull request #1021 from compucorp/COMCL-644-fix-contribution-se…
Browse files Browse the repository at this point in the history
…ttings-page

COMCL-644: Fix contribution settings page
  • Loading branch information
shahrukh-compuco authored Jul 25, 2024
2 parents 83a8e87 + fac25b6 commit fd53403
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 fd53403

Please sign in to comment.