Commit c28745a8 authored by Ivan Tyagov's avatar Ivan Tyagov

We can not find other "verions" of a document as it doesn't have a reference.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39660 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 07b1d845
No related merge requests found
......@@ -60,6 +60,9 @@ portal = context.getPortalObject()\n
document = request.get(\'current_web_document\', context)\n
\n
kw[\'reference\'] = document.getReference()\n
if kw[\'reference\'] is None:\n
# we can not find other "verions" of this document as it doesn\'t have a reference\n
return []\n
kw[\'uid\'] = \'!=%s\' %document.getUid()\n
return portal.portal_catalog(**kw)\n
</string> </value>
......@@ -105,6 +108,8 @@ return portal.portal_catalog(**kw)\n
<string>portal</string>
<string>document</string>
<string>_write_</string>
<string>_getitem_</string>
<string>None</string>
<string>_apply_</string>
</tuple>
</value>
......
1194
\ No newline at end of file
1198
\ 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