From f210bb460c786a31bc7677f0e547a67880997558 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Tue, 21 Aug 2001 07:36:54 +0000 Subject: Bug 96063 - the old method of doing this barfed on long URL strings. --- duplicates.cgi | 77 ++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 29 deletions(-) (limited to 'duplicates.cgi') diff --git a/duplicates.cgi b/duplicates.cgi index 2fccac234..d1640cbf6 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -115,31 +115,10 @@ if () print Param("mostfreqhtml"); -my $commabugs = join(",", keys(%count)); - -print " -

-Give me this list as a Bugzilla bug list. -

- - - - - -\n"; - my %delta; if ($dobefore) { - print ""; - # Calculate the deltas if we are doing a "before" foreach (keys(%count)) { @@ -147,14 +126,6 @@ if ($dobefore) } } -print " - - - - - -\n\n"; - # Sort, if required my @sortedcount; @@ -173,6 +144,54 @@ elsif ($sortby eq "dup_count") my $i = 0; +# Produce a string of bug numbers for a Bugzilla buglist. +my $commabugs = ""; +foreach (@sortedcount) +{ + last if ($i == $maxrows); + + $commabugs .= ($_ . ","); + $i++; +} + +# Avoid having a comma at the end - Bad Things happen. +chop $commabugs; + +print qq| + + + + +Give this to me as a . (Note: the order may not be the same.) + + +
-Bug # -
-Dupe
Count
-
- Change in - last
$changedsince day(s)
Component
Severity
Op Sys
Target
Milestone
Summary
+ + + +\n|; + +if ($dobefore) +{ + print ""; +} + +print " + + + + + +\n\n"; + +$i = 0; + foreach (@sortedcount) { my $id = $_; -- cgit v1.2.3-24-g4f1b
+Bug # +
+Dupe
Count
+
+ Change in + last
$changedsince day(s)
Component
Severity
Op Sys
Target
Milestone
Summary