summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authortimeless%mozdev.org <>2004-09-22 04:56:18 +0200
committertimeless%mozdev.org <>2004-09-22 04:56:18 +0200
commit5fa3cab7d8abfd1b7dffac032d97a618ddf422ba (patch)
tree2ff545a98b312397577399b0bce2c08a49c3d2f8 /show_bug.cgi
parentd95f60f3b44a40d935fb8f5d22c7be41ae8463ed (diff)
downloadbugzilla-5fa3cab7d8abfd1b7dffac032d97a618ddf422ba.tar.gz
bugzilla-5fa3cab7d8abfd1b7dffac032d97a618ddf422ba.tar.xz
Bug 259452 Add bonsai style &mark support to showbug for bug comments
r=kiko a=justdave
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi13
1 files changed, 13 insertions, 0 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 7a568e3f5..4803ff67b 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -59,6 +59,7 @@ my $format = GetFormat("bug/show", scalar $cgi->param('format'),
GetVersionTable();
my @bugs = ();
+my %marks;
if ($single) {
my $id = $cgi->param('id');
@@ -66,6 +67,17 @@ if ($single) {
# probably move into Bug.pm at some point
ValidateBugID($id);
push @bugs, new Bugzilla::Bug($id, $userid);
+ if (defined $cgi->param('mark')) {
+ foreach my $range (split ',', $cgi->param('mark')) {
+ if ($range =~ /^(\d+)-(\d+)$/) {
+ foreach my $i ($1..$2) {
+ $marks{$i} = 1;
+ }
+ } elsif ($range =~ /^(\d+)$/) {
+ $marks{$1} = 1;
+ }
+ }
+ }
} else {
foreach my $id ($cgi->param('id')) {
my $bug = new Bugzilla::Bug($id, $userid);
@@ -80,6 +92,7 @@ eval {
};
$vars->{'bugs'} = \@bugs;
+$vars->{'marks'} = \%marks;
# Next bug in list (if there is one)
my @bug_list;