Commit ddb74453 authored by Jérome Perrin's avatar Jérome Perrin

don't calculate portal_object without using it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17533 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a10aeb3
...@@ -307,7 +307,6 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget, ...@@ -307,7 +307,6 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
here = REQUEST['here'] here = REQUEST['here']
portal_url = getToolByName(here, 'portal_url') portal_url = getToolByName(here, 'portal_url')
portal_url_string = portal_url() portal_url_string = portal_url()
portal_object = portal_url.getPortalObject()
portal_selections_url_string = here.portal_selections.absolute_url_path() portal_selections_url_string = here.portal_selections.absolute_url_path()
if sub_index is None: if sub_index is None:
sub_index_string = '' sub_index_string = ''
...@@ -328,7 +327,6 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget, ...@@ -328,7 +327,6 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
here = REQUEST['here'] here = REQUEST['here']
portal_url = getToolByName(here, 'portal_url') portal_url = getToolByName(here, 'portal_url')
portal_url_string = portal_url() portal_url_string = portal_url()
portal_object = portal_url.getPortalObject()
if (value not in ((), [], None, '')) and \ if (value not in ((), [], None, '')) and \
(field.get_value('allow_jump') == 1): (field.get_value('allow_jump') == 1):
# Keep the selection name in the URL # Keep the selection name in the URL
......
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