[Erp5-report] r13889 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 3 14:37:07 CEST 2007
Author: romain
Date: Tue Apr 3 14:37:06 2007
New Revision: 13889
URL: http://svn.erp5.org?rev=13889&view=rev
Log:
Bug fix: do not use selection directly, but use selection tool methods instead.
Prevent a error when the selection does not exist.
Modified:
erp5/trunk/products/ERP5Form/ListBox.py
Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=13889&r1=13888&r2=13889&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Tue Apr 3 14:37:06 2007
@@ -2804,8 +2804,9 @@
editable_column_ids = map(lambda x: x[0], editable_columns)
selection_name = field.get_value('selection_name')
#LOG('ListBoxValidator', 0, 'field = %s, selection_name = %s' % (repr(field), repr(selection_name)))
- selection = here.portal_selections.getSelectionFor(selection_name, REQUEST=REQUEST)
- params = selection.getParams()
+ params = here.portal_selections.getSelectionParamsFor(
+ selection_name,
+ REQUEST=REQUEST)
portal_url = getToolByName(here, 'portal_url')
portal = portal_url.getPortalObject()
More information about the Erp5-report
mailing list