fix #3656 - UploadableFiles and ImageFiles settings not loaded properly to handle empty string value resulting in upload issues

This commit is contained in:
sbwalker
2024-01-22 08:24:01 -05:00
parent c1d293f9f9
commit 5e1e6aea16
2 changed files with 12 additions and 6 deletions

View File

@ -409,8 +409,9 @@
}
settings = await SettingService.GetUserSettingsAsync(PageState.User.UserId);
var sitesettings = await SettingService.GetSiteSettingsAsync(SiteState.Alias.SiteId);
var sitesettings = await SettingService.GetSiteSettingsAsync(PageState.Site.SiteId);
_ImageFiles = SettingService.GetSetting(settings, "ImageFiles", Constants.ImageFiles);
_ImageFiles = (string.IsNullOrEmpty(_ImageFiles)) ? Constants.ImageFiles : _ImageFiles;
await LoadNotificationsAsync();