From b5e6d4e49adef10c5c28d16142051996b32ff97a Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 10 Aug 2015 10:26:07 -0500 Subject: [PATCH] search: Fix broken export after search --- include/staff/tickets.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php index 595a5205a..db70a4669 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 --> -- GitLab