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

use getEditableField method to get an editable field, this method supports

proxy fields (it looks in the target form to find fields if not found in
current form)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26588 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afd9341e
......@@ -990,13 +990,10 @@ class ListBoxRenderer:
if search_field is None:
search_alias = '_'.join(search_id.split('.'))
# If the search field could not be found, try to get an "editable" field on current form.
editable_field_id = '%s_%s' % (listbox_id, search_alias)
if listbox_form.has_field(editable_field_id, include_disabled=1): # We must include disabled fields at this
# stage since there is no way (yet)
# to evalue cell in TALES expressions
search_field = listbox_form.get_field(editable_field_id, include_disabled=1)
else:
search_field = self.getEditableField(search_alias)
if search_field is None:
continue
render_dict = search_field.render_dict(search_value)
if render_dict is not None:
params[search_id] = render_dict
......
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