From 876c9ecb4be30aa8abf2fe500c28d4d2154d7491 Mon Sep 17 00:00:00 2001 From: Tao Yang Date: Wed, 24 Jul 2019 17:57:39 +0800 Subject: [PATCH] Fix bug of AddIfNotContains extension method in AbpTagHelperAttributeListExtensions.cs --- .../Razor/TagHelpers/AbpTagHelperAttributeListExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Microsoft/AspNetCore/Razor/TagHelpers/AbpTagHelperAttributeListExtensions.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Microsoft/AspNetCore/Razor/TagHelpers/AbpTagHelperAttributeListExtensions.cs index 03dc851694..ae6684a6a6 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Microsoft/AspNetCore/Razor/TagHelpers/AbpTagHelperAttributeListExtensions.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Microsoft/AspNetCore/Razor/TagHelpers/AbpTagHelperAttributeListExtensions.cs @@ -48,10 +48,10 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Microsoft.AspNetCore.Razor.TagHel public static void AddIfNotContains(this TagHelperAttributeList attributes, string name, object value) { - if (!attributes.ContainsName("method")) + if (!attributes.ContainsName(name)) { - attributes.Add("method", "post"); + attributes.Add(name, value); } } } -} \ No newline at end of file +}