Empty _themetype check to avoid page crash
without this check, admin dashboard -> Page Management -> Edit page is crashing
This commit is contained in:
parent
c15586a1c4
commit
7a8cfcee35
|
@ -375,6 +375,10 @@
|
||||||
// appearance
|
// appearance
|
||||||
_title = _page.Title;
|
_title = _page.Title;
|
||||||
_themetype = _page.ThemeType;
|
_themetype = _page.ThemeType;
|
||||||
|
if (string.IsNullOrEmpty(_themetype))
|
||||||
|
{
|
||||||
|
_themetype = PageState.Site.DefaultThemeType;
|
||||||
|
}
|
||||||
_themes = ThemeService.GetThemeControls(PageState.Site.Themes);
|
_themes = ThemeService.GetThemeControls(PageState.Site.Themes);
|
||||||
_containers = ThemeService.GetContainerControls(PageState.Site.Themes, _themetype);
|
_containers = ThemeService.GetContainerControls(PageState.Site.Themes, _themetype);
|
||||||
_containertype = _page.DefaultContainerType;
|
_containertype = _page.DefaultContainerType;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user