Commit 8634dcf3 authored by Jérome Perrin's avatar Jérome Perrin

allow searching in Document tab

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34846 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6d45b1fd
......@@ -53,13 +53,16 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>sub_document_list = context.portal_catalog(\n
<value> <string>kw.pop(\'relative_url\', None)\n
kw.pop(\'follow_up_uid\', None)\n
\n
sub_document_list = context.portal_catalog(\n
portal_type=portal_type,\n
relative_url=\'%s/%%\' % context.getRelativeUrl())\n
relative_url=\'%s/%%\' % context.getRelativeUrl(), **kw)\n
\n
follow_up_related_document_list = context.portal_catalog(\n
portal_type=portal_type,\n
follow_up_uid=context.getUid())\n
follow_up_uid=context.getUid(), **kw)\n
\n
if not sub_document_list:\n
return follow_up_related_document_list\n
......@@ -107,6 +110,8 @@ return [doc for doc in follow_up_related_document_list] + [doc for doc in sub_do
<string>portal_type</string>
<string>kw</string>
<string>_getattr_</string>
<string>None</string>
<string>_apply_</string>
<string>context</string>
<string>sub_document_list</string>
<string>follow_up_related_document_list</string>
......
1572
\ No newline at end of file
1573
\ 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