--- a/src/pyams_content_es/shared/view/__init__.py Tue Jan 08 14:06:05 2019 +0100
+++ b/src/pyams_content_es/shared/view/__init__.py Thu Jan 10 17:43:13 2019 +0100
@@ -44,7 +44,7 @@
# check workflow states
wf_params = []
for workflow in registry.getAllUtilitiesRegisteredFor(IWorkflow):
- wf_params.extend(workflow.published_states)
+ wf_params.extend(workflow.visible_states)
params &= Q('terms', **{'workflow.status': wf_params})
# check custom extensions
for name, adapter in sorted(registry.getAdapters((view,), IViewQueryEsParamsExtension),