]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 395771: Advanced search results sorted incorrectly when sorted by importance...
authorlpsolit%gmail.com <>
Thu, 20 Sep 2007 23:36:59 +0000 (23:36 +0000)
committerlpsolit%gmail.com <>
Thu, 20 Sep 2007 23:36:59 +0000 (23:36 +0000)
buglist.cgi

index ddf31ddfff03beb0f8d3e8bf07dea1b694b3f622..81b0f2c21ddf16befa0ef54fe20534166badfff9 100755 (executable)
@@ -932,7 +932,7 @@ $db_order =~ s/$aggregate_search/percentage_complete/g;
 # Now put $db_order into a format that Bugzilla::Search can use.
 # (We create $db_order as a string first because that's the way
 # we did it before Bugzilla::Search took an "order" argument.)
-my @orderstrings = split(',', $db_order);
+my @orderstrings = split(/[,\s]+/, $db_order);
 
 # Generate the basic SQL query that will be used to generate the bug list.
 my $search = new Bugzilla::Search('fields' => \@selectnames,