From: Vincent Vanwaelscappel Date: Thu, 6 Oct 2022 08:04:30 +0000 (+0200) Subject: wip #5509 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1b0963a69577c317255263e6ee6c1b811f0c674b;p=cubist_cms-back.git wip #5509 --- diff --git a/src/app/Magic/Models/CMSPage.php b/src/app/Magic/Models/CMSPage.php index 42ce65a..cef2200 100644 --- a/src/app/Magic/Models/CMSPage.php +++ b/src/app/Magic/Models/CMSPage.php @@ -79,7 +79,7 @@ class CMSPage extends CubistMagicNestedModel } - public function onCreating() + public function onCreating():bool { $this->useTemplateIfNotSet(request('template')); return $this->onCreating(); @@ -98,13 +98,13 @@ class CMSPage extends CubistMagicNestedModel // parent::onBeforeEdit($controller, $id); // } - public function onSaving() + public function onSaving():bool { $this->useTemplateIfNotSet(request('template')); return $this->onSaving(); } - public function onUpdating() + public function onUpdating():bool { $this->useTemplateIfNotSet(request('template')); return $this->onUpdating();