[Erp5-report] r10762 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 17 10:26:49 CEST 2006


Author: vincent
Date: Tue Oct 17 10:26:46 2006
New Revision: 10762

URL: http://svn.erp5.org?rev=10762&view=rev
Log:
Fix Base_callDialogMethod failing on selection_name gathering from the parameters. If selection_name is not present, then there is no selection to update, period.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml?rev=10762&r1=10761&r2=10762&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml Tue Oct 17 10:26:46 2006
@@ -215,7 +215,10 @@
 \n
 # if we have checked line in listbox, modify the selection\n
 listbox_uid = kw.get(\'listbox_uid\', None)\n
-if listbox_uid is not None:\n
+# In some cases, the listbox exists, is editable, but the selection name\n
+# has no meaning, for example fast input dialogs.\n
+# In such cases, we must not try to update a non-existing selection.\n
+if listbox_uid is not None and kw.has_key(\'selection_name\'):\n
   uids = kw.get(\'uids\')\n
   selected_uids = context.portal_selections.updateSelectionCheckedUidList(\n
     kw[\'selection_name\'],\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=10762&r1=10761&r2=10762&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Tue Oct 17 10:26:46 2006
@@ -1,1 +1,1 @@
-111
+112




More information about the Erp5-report mailing list