Commit 659b4af8 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: do not use selection directly, but use selection tool methods instead.

Prevent a error when the selection does not exist.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13889 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97473b74
......@@ -2804,8 +2804,9 @@ class ListBoxValidator(Validator.Validator):
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()
......
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