From 4b2fa2e167546624772eac8b3d10817babc28826 Mon Sep 17 00:00:00 2001 From: maliming Date: Sun, 25 Aug 2024 12:18:42 +0800 Subject: [PATCH] Set `SettingDefinition's Providers` from `SettingDefinitionRecord`. --- .../DynamicSettingDefinitionStoreInMemoryCache.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/DynamicSettingDefinitionStoreInMemoryCache.cs b/modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/DynamicSettingDefinitionStoreInMemoryCache.cs index e682e7a0857..ca46f58a65b 100644 --- a/modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/DynamicSettingDefinitionStoreInMemoryCache.cs +++ b/modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/DynamicSettingDefinitionStoreInMemoryCache.cs @@ -41,6 +41,11 @@ public Task FillAsync(List settingRecords) record.IsInherited, record.IsEncrypted); + if (!record.Providers.IsNullOrWhiteSpace()) + { + settingDefinition.Providers.AddRange(record.Providers.Split(',')); + } + foreach (var property in record.ExtraProperties) { settingDefinition.WithProperty(property.Key, property.Value);