Fix bug in App Settings when list value is "missing"

This commit is contained in:
Lance Edgar 2020-09-26 15:00:42 -05:00
parent 37a05155e5
commit bcb4bda7e6

View file

@ -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):