[Erp5-report] r38280 kazuhiko - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTempl...
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Sep 12 15:38:01 CEST 2010
Author: kazuhiko
Date: Sun Sep 12 15:38:00 2010
New Revision: 38280
URL: http://svn.erp5.org?rev=38280&view=rev
Log:
If no related document is found by provided criteria, the empty listbox should be displayed instead of bogus 'all documents' listbox.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml?rev=38280&r1=38279&r2=38280&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml [utf8] Sun Sep 12 15:38:00 2010
@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
- <tuple>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- <tuple/>
- </tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
@@ -71,7 +68,7 @@ if len(jump_reference_list)==1:\n
jump_reference = jump_reference_list[0]\n
return jump_reference.Base_redirect(\'view\')\n
else:\n
- selection_uid_list = map(lambda x:x.getUid(),jump_reference_list)\n
+ selection_uid_list = map(lambda x:x.getUid(),jump_reference_list) or None\n
kw = {\'uid\': selection_uid_list}\n
# We need to reset the selection. Indeed, some sort columns done in another \n
# jump could be meaningless for this particular jump. The consequence could \n
@@ -146,8 +143,8 @@ else:\n
<string>len</string>
<string>_getitem_</string>
<string>jump_reference</string>
- <string>selection_uid_list</string>
<string>None</string>
+ <string>selection_uid_list</string>
</tuple>
</value>
</item>
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=38280&r1=38279&r2=38280&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Sun Sep 12 15:38:00 2010
@@ -1 +1 @@
-1699
\ No newline at end of file
+1700
\ No newline at end of file
More information about the Erp5-report
mailing list