From cb5017e53678f682417416fad09745646cdf8ea9 Mon Sep 17 00:00:00 2001 From: Basil Suter Date: Wed, 13 Sep 2023 10:41:37 +0000 Subject: [PATCH] changelog info, stricter model validation --- CHANGELOG.md | 5 +++++ src/models/NavItemRedirect.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea53af5c..3a381e41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/models/NavItemRedirect.php b/src/models/NavItemRedirect.php index 74c89c1c..ba4bcd24 100644 --- a/src/models/NavItemRedirect.php +++ b/src/models/NavItemRedirect.php @@ -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], ]; }