Fix bug in App Settings when list value is "missing"
This commit is contained in:
parent
37a05155e5
commit
bcb4bda7e6
|
@ -228,7 +228,8 @@ class AppSettingsView(View):
|
|||
return self.rattail_config.getbool(setting.namespace, setting.name)
|
||||
if setting.data_type is list:
|
||||
return '\n'.join(
|
||||
self.rattail_config.getlist(setting.namespace, setting.name))
|
||||
self.rattail_config.getlist(setting.namespace, setting.name,
|
||||
default=[]))
|
||||
return self.rattail_config.get(setting.namespace, setting.name)
|
||||
|
||||
def save_setting_value(self, setting, value):
|
||||
|
|
Loading…
Reference in a new issue