Corrected owner index name
authorThierry Florac <thierry.florac@onf.fr>
Thu, 15 Oct 2015 15:39:35 +0200
changeset 3 cdcc8fa70047
parent 2 7d6c21b84224
child 4 79b06562f139
Corrected owner index name
src/pyams_content/shared/common/zmi/search.py
--- a/src/pyams_content/shared/common/zmi/search.py	Thu Oct 15 15:38:49 2015 +0200
+++ b/src/pyams_content/shared/common/zmi/search.py	Thu Oct 15 15:39:35 2015 +0200
@@ -175,7 +175,7 @@
                     query_params |= Contains(index, ' and '.join((w+'*' for w in query.split())))
                 params &= query_params
         if data.get('owner'):
-            params &= Eq(catalog['owner'], data['owner'])
+            params &= Eq(catalog['role:owner'], data['owner'])
         if data.get('status'):
             params &= Eq(catalog['workflow_state'], data['status'])
         if data.get('created_after'):