Browse Source

Fix bug of AddIfNotContains extension method in AbpTagHelperAttributeListExtensions.cs

pull/1524/head
Tao Yang 7 years ago
committed by GitHub
parent
commit
876c9ecb4b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/Microsoft/AspNetCore/Razor/TagHelpers/AbpTagHelperAttributeListExtensions.cs

6
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);
}
}
}
}
}

Loading…
Cancel
Save