summaryrefslogtreecommitdiffstats
path: root/bug_form.pl
diff options
context:
space:
mode:
authorendico%mozilla.org <>2000-07-14 08:12:49 +0200
committerendico%mozilla.org <>2000-07-14 08:12:49 +0200
commit65695473717fdcadbcc85cac9c469231f352c739 (patch)
treeb5486ebe797e96143e40ca38a08cff2f8288d9fe /bug_form.pl
parent17c6ef4af4c9c781d6d7a07be420762dfd065703 (diff)
downloadbugzilla-65695473717fdcadbcc85cac9c469231f352c739.tar.gz
bugzilla-65695473717fdcadbcc85cac9c469231f352c739.tar.xz
Bug moving code is now fully implemented. To use it, turn on the param and set the move related params.
Diffstat (limited to 'bug_form.pl')
-rw-r--r--bug_form.pl34
1 files changed, 32 insertions, 2 deletions
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 "&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE=checkbox NAME=compconfirm> and confirm bug (change status to <b>NEW</b>)<BR>";
}
$knum++;
+ } elsif ( Param("move-enabled") && ($bug{'resolution'} eq "MOVED") ) {
+ if ( (defined $::COOKIE{"Bugzilla_login"})
+ && ($::COOKIE{"Bugzilla_login"} =~ /($movers)/) ){
+ print "<INPUT TYPE=radio NAME=knob VALUE=reopen> Reopen bug<br>\n";
+ $knum++;
+ if ($status eq "RESOLVED") {
+ print "<INPUT TYPE=radio NAME=knob VALUE=verify>
+ Mark bug as <b>VERIFIED</b><br>\n";
+ $knum++;
+ }
+ if ($status ne "CLOSED") {
+ print "<INPUT TYPE=radio NAME=knob VALUE=close>
+ Mark bug as <b>CLOSED</b><br>\n";
+ $knum++;
+ }
+ }
} else {
print "<INPUT TYPE=radio NAME=knob VALUE=reopen> Reopen bug<br>\n";
$knum++;
@@ -491,14 +510,25 @@ if ($canedit || $::userid == $assignedtoid ||
print "
<INPUT TYPE=\"submit\" VALUE=\"Commit\">
<INPUT TYPE=\"reset\" VALUE=\"Reset\">
-<INPUT TYPE=hidden name=form_name VALUE=process_bug>
+<INPUT TYPE=\"hidden\" name=\"form_name\" VALUE=\"process_bug\">
<P>
<FONT size=\"+1\"><B>
<A HREF=\"show_activity.cgi?id=$id\">View Bug Activity</A>
&nbsp; | &nbsp;
<A HREF=\"long_list.cgi?buglist=$id\">Format For Printing</A>
</B></FONT><BR>
-</FORM>
+";
+
+if ( Param("move-enabled") && (defined $::COOKIE{"Bugzilla_login"}) && ($::COOKIE{"Bugzilla_login"} =~ /($movers)/) ){
+ print "
+<P>
+<INPUT TYPE=\"SUBMIT\" NAME=\"action\" VALUE=\""
+ . Param("move-button-text") . "\">";
+}
+
+print "</FORM>";
+
+print "
<table><tr><td align=left><B>Description:</B></td>
<td align=right width=100%>Opened: $bug{'creation_ts'}</td></tr></table>
<HR>