[web/facet] do NOT drop offset/limit of the base rql (closes #3344579)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 03 Dec 2013 15:46:19 +0100
changeset 9373 d5d9acadb975
parent 9372 e87a808a4c32
child 9374 1236d9058ad3
[web/facet] do NOT drop offset/limit of the base rql (closes #3344579)
web/facet.py
--- a/web/facet.py	Thu Dec 12 18:25:45 2013 +0100
+++ b/web/facet.py	Tue Dec 03 15:46:19 2013 +0100
@@ -127,11 +127,9 @@
     return filtered_variable, baserql
 
 def get_filtered_variable(select, mainvar=None):
-    """drop any limit/offset from select (in-place modification) and return the
-    variable whose name is `mainvar` or the first variable selected in column 0
+    """ Return the variable whose name is `mainvar`
+    or the first variable selected in column 0
     """
-    select.set_limit(None)
-    select.set_offset(None)
     if mainvar is None:
         vref = select.selection[0].iget_nodes(nodes.VariableRef).next()
         return vref.variable