Merge pull request #1882 from leigh-pointer/#1880GetModuleDefinitionSettings
#1880 Issue with new SettingService
This commit is contained in:
commit
e22606ae79
|
@ -134,13 +134,20 @@ namespace Oqtane.Services
|
|||
bool ispublic = false;
|
||||
if (value.StartsWith("[Public]"))
|
||||
{
|
||||
if (entityName == EntityNames.Site)
|
||||
switch (entityName)
|
||||
{
|
||||
ispublic = true;
|
||||
case EntityNames.Site:
|
||||
case EntityNames.ModuleDefinition:
|
||||
ispublic = true;
|
||||
break;
|
||||
default:
|
||||
ispublic = false;
|
||||
break;
|
||||
}
|
||||
value = value.Substring(8); // remove [Public]
|
||||
value = value.Substring(8); // remove [Public]
|
||||
}
|
||||
|
||||
|
||||
Setting setting = settingsList.FirstOrDefault(item => item.SettingName.Equals(kvp.Key, StringComparison.OrdinalIgnoreCase));
|
||||
if (setting == null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user