Commit 1e53cc9e authored by Ivan Tyagov's avatar Ivan Tyagov

Use respective method to get ZSQL catalog instance (thanks Vincent)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19154 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9eeaa97e
......@@ -999,8 +999,7 @@ class SimulationTool(BaseTool):
# get search key definitions from portal_catalog
ctool = getToolByName(self, 'portal_catalog')
portal_catalog_id = ctool.default_sql_catalog_id
portal_catalog = getattr(ctool, portal_catalog_id)
portal_catalog = ctool.getSQLCatalog()
keyword_search_keys = list(portal_catalog.sql_catalog_keyword_search_keys)
datetime_search_keys = list(portal_catalog.sql_catalog_datetime_search_keys)
full_text_search_keys = list(portal_catalog.sql_catalog_full_text_search_keys)
......
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