Commit ed46dda1 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Do not override portal_type for Catalog search when already given as a

parameter of Document_getOtherVersionDocumentList.

This fixes test_Document_getOtherVersionDocumentList from
testDmsWithPreConversion.TestDocumentWithPreConversion.
parent 29e2e842
......@@ -64,7 +64,8 @@ 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
kw[\'portal_type\'] = context.getPortalDocumentTypeList()\n
if \'portal_type\' not in kw:\n
kw[\'portal_type\'] = context.getPortalDocumentTypeList()\n
return portal.portal_catalog(**kw)\n
</string> </value>
</item>
......
2011-11-11 arnaud.fontaine
* Do not override portal_type for Catalog search when already given as a parameter of Document_getOtherVersionDocumentList.
2011-03-28 Kazuhiko
* we should have at most only one published/released/shared document for each reference/language, i.e. we should not have both published and released document with the same reference/language at the same time.
......
1257
\ No newline at end of file
1258
\ 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