Skip to content
Snippets Groups Projects
Commit b5e6d4e4 authored by Jared Hancock's avatar Jared Hancock
Browse files

search: Fix broken export after search

parent b9fd3631
No related branches found
No related tags found
No related merge requests found
......@@ -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 -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment