From bbe9b1034558f994f8eb75083078ac8e8e15fa1b Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Tue, 23 Jan 2024 08:49:56 +0300 Subject: [PATCH] Update MaxLength parameters in DynamicMaxLength for CreatePageViewModel --- .../Pages/CmsKit/Pages/Create.cshtml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/Create.cshtml.cs b/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/Create.cshtml.cs index 4397398b8e..de69405690 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/Create.cshtml.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/Create.cshtml.cs @@ -44,15 +44,15 @@ public class CreateModel : CmsKitAdminPageModel public string Slug { get; set; } [HiddenInput] - [DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxSlugLength))] + [DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxContentLength))] public string Content { get; set; } [TextArea(Rows = 6)] - [DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxSlugLength))] + [DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxScriptLength))] public string Script { get; set; } [TextArea(Rows = 6)] - [DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxSlugLength))] + [DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxStyleLength))] public string Style { get; set; } } }