From 3f483d1164fe52c7640f085003b152a1b44f0097 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 12 Nov 2007 13:50:06 +0000
Subject: [PATCH] just check that field.get_value('allow_jump') is true, not
 it's egal to 1

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17534 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/MultiRelationField.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Form/MultiRelationField.py b/product/ERP5Form/MultiRelationField.py
index 5583846584..9f51f54469 100644
--- a/product/ERP5Form/MultiRelationField.py
+++ b/product/ERP5Form/MultiRelationField.py
@@ -328,7 +328,7 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
     portal_url = getToolByName(here, 'portal_url')
     portal_url_string = portal_url()
     if (value not in ((), [], None, '')) and \
-       (field.get_value('allow_jump') == 1):
+        field.get_value('allow_jump'):
       # Keep the selection name in the URL
       if REQUEST.get('selection_name') is not None:
         selection_name_html = '&amp;selection_name=%s&amp;selection_index=%s' % \
-- 
2.30.9