Skip to content

Commit

Permalink
changelog info, stricter model validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Sep 13, 2023
1 parent 96ddc37 commit cb5017e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ In order to read more about upgrading and BC breaks have a look at the [UPGRADE

## 5.x

+ Drop PHP 7.x versions
+ Added anchor option to cms page redirects
+ cms injector option to set parentNavId
+ add clearable option to zaaCmsPage

## 4.5.3 (20. April 2023)

+ [#399](https://github.com/luyadev/luya-module-cms/pull/399) PHP 8.1 compatibility issues.
Expand Down
3 changes: 2 additions & 1 deletion src/models/NavItemRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function rules()
return [
[['type', 'value'], 'required'],
[['type'], 'integer'],
[['target', 'anchor'], 'string'],
[['target', 'anchor'], 'string', 'max' => 255],
[['value'], 'string', 'max' => 255, 'strict' => false],
];
}

Expand Down

0 comments on commit cb5017e

Please sign in to comment.