Commit a70ed34e authored by Łukasz Nowak's avatar Łukasz Nowak

Drop implicit behaviour.

If no module is selected, check nothing.
parent 0a51e67b
......@@ -53,7 +53,6 @@
<value> <string>active_process = context.newActiveProcess().getRelativeUrl()\n
query_string = context.getProperty(\'catalog_query_string\', \'\')\n
# the query sould be something like "validation_state:!=deleted validation_state:!=draft portal_type:Organisation" etc\n
module_list = context.getProperty(\'module_list\') or []\n
portal = context.getPortalObject()\n
\n
kw = {}\n
......@@ -61,8 +60,7 @@ kw = {}\n
if query_string is not None:\n
kw.update(SearchableText=query_string)\n
\n
if len(module_list):\n
kw.update(parent_uid=[portal.restrictedTraverse(module).getUid() for module in module_list])\n
kw.update(parent_uid=[portal.restrictedTraverse(module).getUid() for module in context.getProperty(\'module_list\') or []])\n
\n
portal.portal_catalog.searchAndActivate(method_id=\'Base_checkAlarmConsistency\', method_kw={\'fixit\': fixit, \'active_process\': active_process}, activate_kw={\'tag\':tag}, **kw)\n
</string> </value>
......
139
\ No newline at end of file
140
\ 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