[Erp5-report] r23089 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 21 16:38:41 CEST 2008
Author: jerome
Date: Thu Aug 21 16:38:41 2008
New Revision: 23089
URL: http://svn.erp5.org?rev=23089&view=rev
Log:
as the listbox will change, remove portal_type from the selection, because portal_type from selection have priority over portal_type from the listbox
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doRelationDialog.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doRelationDialog.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doRelationDialog.xml?rev=23089&r1=23088&r2=23089&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doRelationDialog.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doRelationDialog.xml Thu Aug 21 16:38:41 2008
@@ -72,7 +72,14 @@
\n
context.REQUEST.set("proxy_listbox_id", select_dialog )\n
\n
-return getattr(context,"Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n
+# Remove portal_type from selection params when changing the listbox\n
+stool = context.getPortalObject().portal_selections\n
+selection_params = stool.getSelectionParamsFor("Base_viewRelatedObjectList")\n
+selection_params.pop(\'portal_type\', None)\n
+stool.setSelectionParamsFor("Base_viewRelatedObjectList", selection_params)\n
+\n
+\n
+return getattr(context, "Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n
</string> </value>
</item>
<item>
@@ -127,6 +134,8 @@
<string>None</string>
<string>Base_updateListboxSelection</string>
<string>_getattr_</string>
+ <string>stool</string>
+ <string>selection_params</string>
</tuple>
</value>
</item>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=23089&r1=23088&r2=23089&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Thu Aug 21 16:38:41 2008
@@ -1,1 +1,1 @@
-583
+584
More information about the Erp5-report
mailing list