# HG changeset patch # User Aurelien Campeas # Date 1386081979 -3600 # Node ID d5d9acadb97505df3ff2b91b54149dc603c72a7a # Parent e87a808a4c32366a09c0583954f32b2ff123f029 [web/facet] do NOT drop offset/limit of the base rql (closes #3344579) diff -r e87a808a4c32 -r d5d9acadb975 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