#1880 Issue with new SettingService
Needed to update the SettingService to apply the IsPublic field when updating settings for the ModuleDefinition.
This commit is contained in:
parent
ee18bbd145
commit
e034811e92
@ -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…
x
Reference in New Issue
Block a user