summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwhine.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/whine.pl b/whine.pl
index ad6067228..578a31a7c 100755
--- a/whine.pl
+++ b/whine.pl
@@ -447,10 +447,12 @@ sub run_queries {
# Bugzilla::Search to execute a saved query. It's exceedingly weird,
# but that's how it works.
my $searchparams = new Bugzilla::CGI($savedquery);
+ my @orderstrings = split(/,\s*/, $searchparams->param('order'));
my $search = new Bugzilla::Search(
'fields' => \@searchfields,
'params' => scalar $searchparams->Vars,
'user' => $args->{'recipient'}, # the search runs as the recipient
+ 'order' => \@orderstrings
);
# If a query fails for whatever reason, it shouldn't kill the script.
my $sqlquery = eval { $search->sql };