Fix bug of AddIfNotContains extension method in AbpTagHelperAttributeListExtensions.cs

pull/1524/head
Tao Yang 6 years ago committed by GitHub
parent c74e6ff982
commit 876c9ecb4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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