summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-09-09 06:05:01 +0200
committerByron Jones <glob@mozilla.com>2015-09-09 06:05:01 +0200
commit8ab0d6713284ae54953b389ddeb9691a32d756d0 (patch)
treeeb08b91d27da6dbd26f9e1918e8953c0c513bb68 /buglist.cgi
parent59b90641ea4bb7eaa651d2fa0d782c756647b3ec (diff)
downloadbugzilla-8ab0d6713284ae54953b389ddeb9691a32d756d0.tar.gz
bugzilla-8ab0d6713284ae54953b389ddeb9691a32d756d0.tar.xz
Bug 1202147 - Performing a Simple Search results in the message "invalid column names: relevance desc"
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi18
1 files changed, 9 insertions, 9 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 055de388d..18a9a7fc2 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -717,15 +717,6 @@ my $search = new Bugzilla::Search('fields' => \@selectcolumns,
$order = join(',', $search->order);
-if (scalar @{$search->invalid_order_columns}) {
- $vars->{'message'} = 'invalid_column_name';
- $vars->{'invalid_fragments'} = $search->invalid_order_columns;
-}
-
-if ($fulltext and grep { /^relevance/ } $search->order) {
- $vars->{'message'} = 'buglist_sorted_by_relevance'
-}
-
# We don't want saved searches and other buglist things to save
# our default limit.
$params->delete('limit') if $vars->{'default_limited'};
@@ -789,6 +780,15 @@ if ($cgi->param('debug')
}
}
+if (scalar @{$search->invalid_order_columns}) {
+ $vars->{'message'} = 'invalid_column_name';
+ $vars->{'invalid_fragments'} = $search->invalid_order_columns;
+}
+
+if ($fulltext and grep { /^relevance/ } $search->order) {
+ $vars->{'message'} = 'buglist_sorted_by_relevance'
+}
+
################################################################################
# Results Retrieval
################################################################################