Skip to content

Commit

Permalink
Layout: fix auditing and editor refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner committed Dec 5, 2024
1 parent 0e0ba5d commit d5dd8a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ public function clear(Request $request, Response $response, $id): Response
$blank->parentId = $layout->parentId;
$blank->campaignId = $layout->campaignId;
$blank->publishedStatusId = 2;
$blank->save(['validate' => false, 'auditMessage', 'Canvas Cleared']);
$blank->save(['validate' => false, 'auditMessage' => 'Canvas Cleared']);

// Return
$this->getState()->hydrate([
Expand Down
2 changes: 1 addition & 1 deletion ui/src/layout-editor/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ Layout.prototype.clear = function() {

toastr.success(res.message);

lD.reloadData(res.id);
lD.reloadData(res.id, {refreshEditor: true});
} else {
// Login Form needed?
if (res.login) {
Expand Down

0 comments on commit d5dd8a0

Please sign in to comment.