diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php index 595a5205a784948dd0e60b012cdb40b6254e44c9..db70a46699ad191833dd3b2d83c1993080a6ab5d 100644 --- a/include/staff/tickets.inc.php +++ b/include/staff/tickets.inc.php @@ -280,6 +280,8 @@ case 'updated': break; } +// Save the query to the session for exporting +$_SESSION[':Q:tickets'] = $tickets; // Rewrite $tickets to use a nested query, which will include the LIMIT part // in order to speed the result @@ -317,9 +319,6 @@ $tickets->annotate(array( ->aggregate(array('count' => SqlAggregate::COUNT('entries__id'))), )); -// Save the query to the session for exporting -$_SESSION[':Q:tickets'] = $orig_tickets; - ?> <!-- SEARCH FORM START -->