From 0ecfc7fa34ef04da2eee4976beae1b31bc98e041 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Mon, 2 Jan 2023 17:41:21 +0300 Subject: [PATCH] abp-select tag helper: Check enum values as underlying type for localization --- .../TagHelpers/Form/AbpSelectTagHelperService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpSelectTagHelperService.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpSelectTagHelperService.cs index 9e60cbc75f2..78ef04d1d59 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpSelectTagHelperService.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpSelectTagHelperService.cs @@ -265,7 +265,7 @@ protected virtual List 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[]