Fix preferences handling for utilities.

This commit is contained in:
Khushboo Vashi 2017-06-22 12:18:56 +01:00 committed by Dave Page
parent 137bae1b04
commit 33e75d24f8
2 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,7 @@ def preferences_s():
if len(m['categories']):
for c in m['categories']:
for p in c['preferences']:
p['module'] = m['label']
p['module'] = m['name']
res.append(p)
return ajax_response(

View File

@ -303,6 +303,7 @@ class Preferences(object):
res = {
'id': self.mid,
'label': self.label or self.name,
'name': self.name,
'categories': []
}
for c in self.categories: