multitenant: skip theme settings work when no template vars are set (#26636)
This commit is contained in:
parent
7ede653252
commit
59eabafe59
|
@ -201,6 +201,8 @@ class ThemeSettings(SettingsDictUpdateMixin):
|
|||
return 0
|
||||
|
||||
def update_settings(self, tenant_settings, tenant):
|
||||
if not hasattr(tenant_settings, 'TEMPLATE_VARS'):
|
||||
return
|
||||
theme_id = tenant_settings.TEMPLATE_VARS.get('theme')
|
||||
if not theme_id:
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue