[Erp5-report] r36927 jerome - /erp5/trunk/products/ERP5Form/MultiRelationField.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 7 10:50:59 CEST 2010
Author: jerome
Date: Wed Jul 7 10:50:58 2010
New Revision: 36927
URL: http://svn.erp5.org?rev=36927&view=rev
Log:
always render the wheel
Modified:
erp5/trunk/products/ERP5Form/MultiRelationField.py
Modified: erp5/trunk/products/ERP5Form/MultiRelationField.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/MultiRelationField.py?rev=36927&r1=36926&r2=36927&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/MultiRelationField.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/MultiRelationField.py [utf8] Wed Jul 7 10:50:58 2010
@@ -261,7 +261,15 @@ class MultiRelationStringFieldWidget(Wid
sub_html_string = widget_instance.render(field, key,
value_instance, REQUEST)
if relation_item_list is not None:
- if relation_item_list != []:
+ ####################################
+ # Render wheel
+ ####################################
+ sub_html_string += self.render_wheel(
+ field, value_instance, REQUEST,
+ relation_index=relation_field_index,
+ sub_index=sub_index)
+
+ if relation_item_list:
####################################
# Render listfield
####################################
@@ -272,16 +280,7 @@ class MultiRelationStringFieldWidget(Wid
field, relation_field_id, None, REQUEST)
REQUEST['relation_item_list'] = None
-
- else:
- ####################################
- # Render wheel
- ####################################
- sub_html_string += self.render_wheel(
- field, value_instance, REQUEST,
- relation_index=relation_field_index,
- sub_index=sub_index)
- html_string_list.append(sub_html_string)
+ html_string_list.append(sub_html_string)
####################################
# Generate html
####################################
More information about the Erp5-report
mailing list