diff --git a/CHANGELOG.md b/CHANGELOG.md index e64280a3..c752ff51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ In order to read more about upgrading and BC breaks have a look at the [UPGRADE ## 5.0.1 ++ [#406](https://github.com/luyadev/luya-module-cms/pull/406) Fixed website and theme status ActiveButtons (PHP 8) + [#400](https://github.com/luyadev/luya-module-cms/pull/400) Improved translations (bg, cn, es, fr, hu, id, kr, nl, pl) and updated link to new guide. ## 5.0.0 (30. November 2023) diff --git a/src/models/Theme.php b/src/models/Theme.php index 0e36cd6c..d98e5dbe 100644 --- a/src/models/Theme.php +++ b/src/models/Theme.php @@ -108,6 +108,8 @@ public function ngRestActiveButtons() [ 'class' => 'luya\admin\buttons\ToggleStatusActiveButton', 'attribute' => 'is_default', + 'enableValue' => 1, + 'disableValue' => 0, 'uniqueStatus' => true, 'modelNameAttribute' => 'name', 'label' => 'Toggle default', diff --git a/src/models/Website.php b/src/models/Website.php index 8649e04c..1b82217f 100644 --- a/src/models/Website.php +++ b/src/models/Website.php @@ -172,6 +172,8 @@ public function ngRestActiveButtons() [ 'class' => 'luya\admin\buttons\ToggleStatusActiveButton', 'attribute' => 'is_default', + 'enableValue' => 1, + 'disableValue' => 0, 'uniqueStatus' => true, 'modelNameAttribute' => 'name', 'label' => 'Set default',