aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;