From 9189a8c79cf89c39eb16732b6b55afebbffc14d8 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Wed, 7 Apr 2010 14:07:52 +0000 Subject: [PATCH] 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 --- product/Formulator/Form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/Formulator/Form.py b/product/Formulator/Form.py index 43e4672240..261637f567 100644 --- a/product/Formulator/Form.py +++ b/product/Formulator/Form.py @@ -184,7 +184,7 @@ class Form: """ group_list = self.group_list i = group_list.index(group) - if i == 1: + if i == 0: return False # can't move further up, so we're done # swap groups, moving i up group_list[i], group_list[i - 1] = group_list[i - 1], group_list[i] -- 2.30.9