Browse Source

Merge pull request #20614 from abpframework/DynamicSettingDefinitionStoreInMemoryCache

Set `SettingDefinition's Providers` from `SettingDefinitionRecord`.
pull/20634/head
Engincan VESKE 2 years ago
committed by GitHub
parent
commit
0c7b5cf44d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/DynamicSettingDefinitionStoreInMemoryCache.cs

5
modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/DynamicSettingDefinitionStoreInMemoryCache.cs

@ -41,6 +41,11 @@ public class DynamicSettingDefinitionStoreInMemoryCache : IDynamicSettingDefinit
record.IsInherited, record.IsInherited,
record.IsEncrypted); record.IsEncrypted);
if (!record.Providers.IsNullOrWhiteSpace())
{
settingDefinition.Providers.AddRange(record.Providers.Split(','));
}
foreach (var property in record.ExtraProperties) foreach (var property in record.ExtraProperties)
{ {
settingDefinition.WithProperty(property.Key, property.Value); settingDefinition.WithProperty(property.Key, property.Value);

Loading…
Cancel
Save