summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-09-01 20:08:25 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-09-01 20:08:25 +0200
commitaf9cc0424a7fb08b95de7de7e8e978cfd777865a (patch)
tree440aadd4eca033c9406cbf16764f283d11809fa2 /query.cgi
parent205a682abdb486332a3bad9c33bec64ab6e148db (diff)
downloadbugzilla-af9cc0424a7fb08b95de7de7e8e978cfd777865a.tar.gz
bugzilla-af9cc0424a7fb08b95de7de7e8e978cfd777865a.tar.xz
Fix an error in the patch from bug 636416, see comment 15
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/query.cgi b/query.cgi
index 686d9db36..a88b11c96 100755
--- a/query.cgi
+++ b/query.cgi
@@ -60,6 +60,7 @@ sub get_product_values {
$seen{$lc_name} = $value;
}
+ $field =~ s/s$//;
if ($field eq 'version') {
@unique = sort { vers_cmp(lc($a->name), lc($b->name)) } @unique;
}
@@ -67,7 +68,6 @@ sub get_product_values {
@unique = sort { lc($a->name) cmp lc($b->name) } @unique;
}
- $field =~ s/s$//;
$field = 'target_milestone' if $field eq 'milestone';
$vars->{duplicates}->{$field} = \%duplicates;
$vars->{duplicate_count}->{$field} = \%duplicate_count;