[facet] fix #873742: erroenously use self.cw_rset instead of context rset stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 15 Apr 2010 15:16:01 +0200
branchstable
changeset 5282 d7f72547208e
parent 5281 d01a02d07a57
child 5283 9ad0eaa09d34
[facet] fix #873742: erroenously use self.cw_rset instead of context rset
web/views/facets.py
--- a/web/views/facets.py	Thu Apr 15 15:14:21 2010 +0200
+++ b/web/views/facets.py	Thu Apr 15 15:16:01 2010 +0200
@@ -69,7 +69,7 @@
         rset, vid, divid, paginate = self._get_context(view)
         if rset.rowcount < 2: # XXX done by selectors, though maybe necessary when rset has been hijacked
             return
-        rqlst = self.cw_rset.syntax_tree()
+        rqlst = rset.syntax_tree()
         # union not yet supported
         if len(rqlst.children) != 1:
             return ()