Skip to content

Commit

Permalink
Merge pull request #27132 from larssandergreen/Fix-checkbox-regressio…
Browse files Browse the repository at this point in the history
…ns-for-import-and-new-message-template

Fix checkbox JS regression for import data selection and email new te…
  • Loading branch information
demeritcowboy authored Aug 24, 2023
2 parents b16f16e + d27d37a commit 08ad59a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CRM/Import/Form/DataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function buildQuickForm() {
$this->assign('urlPath', 'civicrm/import/datasource');
$this->assign('urlPathVar', 'snippet=4&user_job_id=' . $this->get('user_job_id'));
if ($this->isImportDataUploaded()) {
$this->add('checkbox', 'use_existing_upload', ts('Use data already uploaded'), NULL, FALSE, [
$this->add('checkbox', 'use_existing_upload', ts('Use data already uploaded'), [
'onChange' => "
CRM.$('.crm-import-datasource-form-block-dataSource').toggle();
CRM.$('#data-source-form-block').toggle()",
Expand Down
5 changes: 1 addition & 4 deletions CRM/Mailing/BAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -2580,10 +2580,7 @@ public static function commonCompose(&$form) {
);
}
$form->add('checkbox', "{$prefix}updateTemplate", ts('Update Template'), NULL);

$form->add('checkbox', "{$prefix}saveTemplate", ts('Save As New Template'), NULL, FALSE,
['onclick' => "showSaveDetails(this, '{$prefix}');"]
);
$form->add('checkbox', "{$prefix}saveTemplate", ts('Save As New Template'), ['onclick' => "showSaveDetails(this, '{$prefix}');"]);
$form->add('text', "{$prefix}saveTemplateName", ts('Template Title'));
}

Expand Down

0 comments on commit 08ad59a

Please sign in to comment.