Commit f79bb341 authored by Ivan Tyagov's avatar Ivan Tyagov

Searchable string format allows multiple values to by passed for portal_type...

Searchable string format allows multiple values to by passed for portal_type concatenated by ',' so adjust accordingly  query generation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36534 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04203f93
...@@ -92,8 +92,9 @@ portal_type = parsed_search_string.get(\'portal_type\', None)\n ...@@ -92,8 +92,9 @@ portal_type = parsed_search_string.get(\'portal_type\', None)\n
if portal_type is None or not len(portal_type):\n if portal_type is None or not len(portal_type):\n
query_kw[\'portal_type\'] = portal.getPortalDocumentTypeList()\n query_kw[\'portal_type\'] = portal.getPortalDocumentTypeList()\n
else:\n else:\n
# safe to add passed portal_type\n # safe to add passed portal_type, \n
query_kw[\'portal_type\'] = portal_type\n # as multiple values exists split them by \',\'\n
query_kw[\'portal_type\'] = portal_type.split(\',\')\n
\n \n
# ZSQLCatalog wants table.key to avoid ambiguity\n # ZSQLCatalog wants table.key to avoid ambiguity\n
parsed_searchabletext = parsed_search_string.get(\'searchabletext\', None)\n parsed_searchabletext = parsed_search_string.get(\'searchabletext\', None)\n
......
1150 1152
\ 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