From 83c531dd61b7c55269129e72d1e71ae19c7c6f14 Mon Sep 17 00:00:00 2001 From: Scott Durow Date: Wed, 14 Apr 2021 11:23:14 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Force=20optionset=20label=20to?= =?UTF-8?q?=201033=20since=20it's=20hard=20coded=20in=20CrmSvcUtil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spkl/CrmSvcUtilFilteringService/FilteringService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spkl/CrmSvcUtilFilteringService/FilteringService.cs b/spkl/CrmSvcUtilFilteringService/FilteringService.cs index faa48791..79572a95 100644 --- a/spkl/CrmSvcUtilFilteringService/FilteringService.cs +++ b/spkl/CrmSvcUtilFilteringService/FilteringService.cs @@ -70,9 +70,12 @@ public bool GenerateOptionSet(OptionSetMetadataBase optionSetMetadata, IServiceP } // Set all languages to the user localised version + // This is so that no matter what languages are defined, the user's language is picked up + // 1033 is hard coded in to the default naming service of CrmSvcUtil foreach (var label in option.Label.LocalizedLabels) { label.Label = option.Label.UserLocalizedLabel.Label; + label.LanguageCode = 1033; } } @@ -85,6 +88,8 @@ public bool GenerateOptionSet(OptionSetMetadataBase optionSetMetadata, IServiceP foreach (var label in option.Label.LocalizedLabels) { label.Label = option.Label.UserLocalizedLabel.Label; + // 1033 is hard coded in to the default naming service of CrmSvcUtil + label.LanguageCode = 1033; } }); }