[Erp5-report] r14869 - /erp5/trunk/products/ERP5Form/ListBox.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 19 11:27:34 CEST 2007


Author: jerome
Date: Tue Jun 19 11:27:34 2007
New Revision: 14869

URL: http://svn.erp5.org?rev=14869&view=rev
Log:
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.


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=14869&r1=14868&r2=14869&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Tue Jun 19 11:27:34 2007
@@ -933,8 +933,9 @@
       listbox_id = self.getId()
       for search_id, search_value, search_field in search_value_list:
         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_id)
+          editable_field_id = '%s_%s' % (listbox_id, search_alias)
           if listbox_form.has_field(editable_field_id):
             search_field = listbox_form.get_field(editable_field_id)
           else:




More information about the Erp5-report mailing list