Skip to content

Commit

Permalink
Merge pull request #15295 from abpframework/abp-select-localization-e…
Browse files Browse the repository at this point in the history
…num-fix

abp-select tag helper: Check enum values as underlying type for localization
  • Loading branch information
maliming authored Jan 3, 2023
2 parents f0519c3 + 0ecfc7f commit afc33f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ protected virtual List<SelectListItem> GetSelectItemsFromEnum(TagHelperContext c

var containerLocalizer = _tagHelperLocalizer.GetLocalizerOrNull(explorer.Container.ModelType.Assembly);

foreach (var enumValue in enumType.GetEnumValues())
foreach (var enumValue in enumType.GetEnumValuesAsUnderlyingType())
{
var localizedMemberName = _abpEnumLocalizer.GetString(enumType, enumValue,
new[]
Expand Down

0 comments on commit afc33f6

Please sign in to comment.