Commit 0e219fda authored by Jérome Perrin's avatar Jérome Perrin

search fields for date didn't support editable fields with an alias.

Changing getSearchValueList to return sql and alias would probably have been
cleaner, but it would break compatibility with customized listbox page
templates.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14869 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71f10f4e
...@@ -933,8 +933,9 @@ class ListBoxRenderer: ...@@ -933,8 +933,9 @@ class ListBoxRenderer:
listbox_id = self.getId() listbox_id = self.getId()
for search_id, search_value, search_field in search_value_list: for search_id, search_value, search_field in search_value_list:
if search_field is None: 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. # 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_id) editable_field_id = '%s_%s' % (listbox_id, search_alias)
if listbox_form.has_field(editable_field_id): if listbox_form.has_field(editable_field_id):
search_field = listbox_form.get_field(editable_field_id) search_field = listbox_form.get_field(editable_field_id)
else: else:
......
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