Commit 1cf36281 authored by Jérome Perrin's avatar Jérome Perrin

dms: fix FCKEditor creating a Query with unknown columns

Only portal_catalog.searchResults supports ignore_unknown_columns, it does not make sense at the level of Products.ZSQLCatalog.SQLCatalog.Query
parent 1e506692
......@@ -51,7 +51,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>return context.getPortalObject().portal_catalog(\n
context.FCKeditor_getDocumentListQuery(**kw))\n
context.FCKeditor_getDocumentListQuery(), **kw)\n
</string> </value>
</item>
<item>
......
......@@ -64,13 +64,12 @@ return ComplexQuery(\n
reference=\'!=None\'),\n
Query(validation_state=\'embedded\', parent_uid=context.getUid()),\n
operator=\'or\'),\n
Query(**kw),\n
operator=\'and\')\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>document_type=None, **kw</string> </value>
<value> <string>document_type=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -51,7 +51,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>return context.getPortalObject().portal_catalog(\n
context.FCKeditor_getDocumentListQuery(document_type=\'Image\', **kw))\n
context.FCKeditor_getDocumentListQuery(document_type=\'Image\'), **kw)\n
</string> </value>
</item>
<item>
......
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