Browse Source
Fix bug of AddIfNotContains extension method in AbpTagHelperAttributeListExtensions.cs
pull/1524/head
Tao Yang
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
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) |
|
|
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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|