Commit 8fdc8cba authored by Jérome Perrin's avatar Jérome Perrin

Add not_assigned group on form.group_list when creating the group for fields not in the form



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11345 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 89a880a1
...@@ -702,6 +702,7 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -702,6 +702,7 @@ class ObjectTemplateItem(BaseTemplateItem):
new_groups_dict['not_assigned'].append(widget_id) new_groups_dict['not_assigned'].append(widget_id)
else: else:
new_groups_dict['not_assigned'] = [widget_id,] new_groups_dict['not_assigned'] = [widget_id,]
obj.group_list = list(obj.group_list) + ['not_assigned']
# second check all widget_id in order are in form # second check all widget_id in order are in form
for group_id in new_groups_dict.keys(): for group_id in new_groups_dict.keys():
for widget_id in new_groups_dict[group_id]: for widget_id in new_groups_dict[group_id]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment