Commit 9189a8c7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

there is no reason to prohibit swapping the first and the second groups.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34330 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3789a702
...@@ -184,7 +184,7 @@ class Form: ...@@ -184,7 +184,7 @@ class Form:
""" """
group_list = self.group_list group_list = self.group_list
i = group_list.index(group) i = group_list.index(group)
if i == 1: if i == 0:
return False # can't move further up, so we're done return False # can't move further up, so we're done
# swap groups, moving i up # swap groups, moving i up
group_list[i], group_list[i - 1] = group_list[i - 1], group_list[i] group_list[i], group_list[i - 1] = group_list[i - 1], group_list[i]
......
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