fix: [template:update_all] Correct usage of modal parameters

refacto/CRUDComponent
Sami Mokaddem 2023-03-23 10:41:07 +01:00
parent 16a50c08a3
commit 6fe1318ada
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 5 additions and 3 deletions

View File

@ -132,8 +132,10 @@ echo $this->Bootstrap->modal([
'bodyHtml' => $bodyHtml,
'size' => $modalSize,
'type' => $modalType,
'confirmText' => __('Update meta-templates'),
'confirmFunction' => 'updateMetaTemplate',
'confirmButton' => [
'text' => __('Update meta-templates'),
'onclick' => 'updateMetaTemplate',
],
]);
?>

View File

@ -36,4 +36,4 @@ $modalOptions = array_merge($defaultOptions, $modalOptions ?? []);
$modalOptions['bodyHtml'] = $bodyHTML;
echo $this->Bootstrap->modal($modalOptions);
?>