Commit 5d6f97e6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

If no related document is found by provided criteria, the empty listbox should...

If no related document is found by provided criteria, the empty listbox should be displayed instead of bogus 'all documents' listbox.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38280 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ad33fda
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -71,7 +68,7 @@ if len(jump_reference_list)==1:\n ...@@ -71,7 +68,7 @@ if len(jump_reference_list)==1:\n
jump_reference = jump_reference_list[0]\n jump_reference = jump_reference_list[0]\n
return jump_reference.Base_redirect(\'view\')\n return jump_reference.Base_redirect(\'view\')\n
else:\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 kw = {\'uid\': selection_uid_list}\n
# We need to reset the selection. Indeed, some sort columns done in another \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 # jump could be meaningless for this particular jump. The consequence could \n
...@@ -146,8 +143,8 @@ else:\n ...@@ -146,8 +143,8 @@ else:\n
<string>len</string> <string>len</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>jump_reference</string> <string>jump_reference</string>
<string>selection_uid_list</string>
<string>None</string> <string>None</string>
<string>selection_uid_list</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1699 1700
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment