Skip to content

Commit

Permalink
Merge pull request #406 from hbugdoll/patch-2
Browse files Browse the repository at this point in the history
Fixed website and theme status ActiveButtons (PHP 8)
  • Loading branch information
nadar authored Jan 28, 2024
2 parents a05aac2 + 5faed31 commit 2205b81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/models/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions src/models/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2205b81

Please sign in to comment.