[Erp5-report] r17533 - /erp5/trunk/products/ERP5Form/MultiRelationField.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Nov 12 14:48:11 CET 2007


Author: jerome
Date: Mon Nov 12 14:48:10 2007
New Revision: 17533

URL: http://svn.erp5.org?rev=17533&view=rev
Log:
don't calculate portal_object without using it

Modified:
    erp5/trunk/products/ERP5Form/MultiRelationField.py

Modified: erp5/trunk/products/ERP5Form/MultiRelationField.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/MultiRelationField.py?rev=17533&r1=17532&r2=17533&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/MultiRelationField.py (original)
+++ erp5/trunk/products/ERP5Form/MultiRelationField.py Mon Nov 12 14:48:10 2007
@@ -307,7 +307,6 @@
     here = REQUEST['here']
     portal_url = getToolByName(here, 'portal_url')
     portal_url_string = portal_url()
-    portal_object = portal_url.getPortalObject()
     portal_selections_url_string = here.portal_selections.absolute_url_path()
     if sub_index is None:
       sub_index_string = ''
@@ -328,7 +327,6 @@
     here = REQUEST['here']
     portal_url = getToolByName(here, 'portal_url')
     portal_url_string = portal_url()
-    portal_object = portal_url.getPortalObject()
     if (value not in ((), [], None, '')) and \
        (field.get_value('allow_jump') == 1):
       # Keep the selection name in the URL




More information about the Erp5-report mailing list