Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f210bb46
Commit
f210bb46
authored
Aug 21, 2001
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 96063 - the old method of doing this barfed on long URL strings.
parent
126c2d75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
29 deletions
+48
-29
duplicates.cgi
duplicates.cgi
+48
-29
No files found.
duplicates.cgi
View file @
f210bb46
...
...
@@ -115,31 +115,10 @@ if (<data/duplicates/dupes$before*>)
print
Param
(
"mostfreqhtml"
);
my
$commabugs
=
join
(
","
,
keys
(
%
count
));
print
"
<p>
<a href=\"buglist.cgi?bug_id=$commabugs\">Give me this list as a Bugzilla bug list.</a>
</p>
<table BORDER>
<tr BGCOLOR=\"#CCCCCC\">
<td><center><b>
<a href=\"duplicates.cgi?sortby=bug_no&maxrows=$maxrows&changedsince=$changedsince\">Bug #</a>
</b></center></td>
<td><center><b>
<a href=\"duplicates.cgi?sortby=dup_count&maxrows=$maxrows&changedsince=$changedsince\">Dupe<br>Count</a>
</b></center></td>\n"
;
my
%
delta
;
if
(
$dobefore
)
{
print
"<td><center><b>
<a href=\"duplicates.cgi?sortby=delta&maxrows=$maxrows&changedsince=$changedsince\">Change in
last<br>$changedsince day(s)</a></b></center></td>"
;
# Calculate the deltas if we are doing a "before"
foreach
(
keys
(
%
count
))
{
...
...
@@ -147,14 +126,6 @@ if ($dobefore)
}
}
print
"
<td><center><b>Component</b></center></td>
<td><center><b>Severity</b></center></td>
<td><center><b>Op Sys</b></center></td>
<td><center><b>Target<br>Milestone</b></center></td>
<td><center><b>Summary</b></center></td>
</tr>\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|
<form method="POST" action="buglist.cgi">
<input type="hidden" name="bug_id" value="$commabugs">
<input type="hidden" name="order" value="Reuse same sort as last time">
Give this to me as a <input type="submit" value="Bug List">. (Note: the order may not be the same.)
</form>
<table BORDER>
<tr BGCOLOR="#CCCCCC">
<td><center><b>
<a href="duplicates.cgi?sortby=bug_no&maxrows=$maxrows&changedsince=$changedsince">Bug #</a>
</b></center></td>
<td><center><b>
<a href="duplicates.cgi?sortby=dup_count&maxrows=$maxrows&changedsince=$changedsince">Dupe<br>Count</a>
</b></center></td>\n|
;
if
(
$dobefore
)
{
print
"<td><center><b>
<a href=\"duplicates.cgi?sortby=delta&maxrows=$maxrows&changedsince=$changedsince\">Change in
last<br>$changedsince day(s)</a></b></center></td>"
;
}
print
"
<td><center><b>Component</b></center></td>
<td><center><b>Severity</b></center></td>
<td><center><b>Op Sys</b></center></td>
<td><center><b>Target<br>Milestone</b></center></td>
<td><center><b>Summary</b></center></td>
</tr>\n\n"
;
$i
=
0
;
foreach
(
@sortedcount
)
{
my
$id
=
$_
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment