From 2d4f89bddfbd26e6c8ef4236b00632c504192297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=87otur?= Date: Mon, 29 Jun 2020 13:35:12 +0300 Subject: [PATCH] Update DynamicMaxLengthAttributeAdapter.cs --- .../DynamicMaxLengthAttributeAdapter.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/DataAnnotations/DynamicMaxLengthAttributeAdapter.cs b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/DataAnnotations/DynamicMaxLengthAttributeAdapter.cs index 9791534aac..f8193a2e79 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/DataAnnotations/DynamicMaxLengthAttributeAdapter.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/DataAnnotations/DynamicMaxLengthAttributeAdapter.cs @@ -9,9 +9,9 @@ namespace Volo.Abp.AspNetCore.Mvc.DataAnnotations public class DynamicMaxLengthAttributeAdapter : AttributeAdapterBase { private readonly string _max; - + public DynamicMaxLengthAttributeAdapter( - DynamicMaxLengthAttribute attribute, + DynamicMaxLengthAttribute attribute, IStringLocalizer stringLocalizer) : base(attribute, stringLocalizer) { @@ -33,9 +33,9 @@ namespace Volo.Abp.AspNetCore.Mvc.DataAnnotations { Check.NotNull(context, nameof(context)); - MergeAttribute(context.Attributes, "data-val", "true"); - MergeAttribute(context.Attributes, "data-val-maxlength", GetErrorMessage(context)); - MergeAttribute(context.Attributes, "data-val-maxlength-max", _max); + MergeAttribute(context.Attributes, "data-val", "true"); + MergeAttribute(context.Attributes, "data-val-maxlength", GetErrorMessage(context)); + MergeAttribute(context.Attributes, "data-val-maxlength-max", _max); if (Attribute.Length != int.MaxValue) {