Commit 3f483d11 authored by Jérome Perrin's avatar Jérome Perrin

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
parent ddb74453
......@@ -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 = '&selection_name=%s&selection_index=%s' % \
......
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