From 65695473717fdcadbcc85cac9c469231f352c739 Mon Sep 17 00:00:00 2001
From: "endico%mozilla.org" <>
Date: Fri, 14 Jul 2000 06:12:49 +0000
Subject: Bug moving code is now fully implemented. To use it, turn on the
param and set the move related params.
---
bug_form.pl | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
(limited to 'bug_form.pl')
diff --git a/bug_form.pl b/bug_form.pl
index fea6848d8..4e09e7d98 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -423,6 +423,9 @@ if ($status eq $::unconfirmedstate) {
}
}
+my $movers = Param("movers");
+$movers =~ s/\s?,\s?/|/g;
+$movers =~ s/@/\@/g;
if ($canedit || $::userid == $assignedtoid ||
$::userid == $reporterid || $::userid == $qacontactid) {
@@ -472,6 +475,22 @@ if ($canedit || $::userid == $assignedtoid ||
print " and confirm bug (change status to NEW)
";
}
$knum++;
+ } elsif ( Param("move-enabled") && ($bug{'resolution'} eq "MOVED") ) {
+ if ( (defined $::COOKIE{"Bugzilla_login"})
+ && ($::COOKIE{"Bugzilla_login"} =~ /($movers)/) ){
+ print " Reopen bug
\n";
+ $knum++;
+ if ($status eq "RESOLVED") {
+ print "
+ Mark bug as VERIFIED
\n";
+ $knum++;
+ }
+ if ($status ne "CLOSED") {
+ print "
+ Mark bug as CLOSED
\n";
+ $knum++;
+ }
+ }
} else {
print " Reopen bug
\n";
$knum++;
@@ -491,14 +510,25 @@ if ($canedit || $::userid == $assignedtoid ||
print "
-
+
View Bug Activity
|
Format For Printing
-
+";
+
+if ( Param("move-enabled") && (defined $::COOKIE{"Bugzilla_login"}) && ($::COOKIE{"Bugzilla_login"} =~ /($movers)/) ){
+ print "
+
+"; +} + +print ""; + +print "
Description: | Opened: $bug{'creation_ts'} |