diff options
author | endico%mozilla.org <> | 2000-07-14 06:12:49 +0000 |
---|---|---|
committer | endico%mozilla.org <> | 2000-07-14 06:12:49 +0000 |
commit | 65695473717fdcadbcc85cac9c469231f352c739 (patch) | |
tree | b5486ebe797e96143e40ca38a08cff2f8288d9fe /bug_form.pl | |
parent | 17c6ef4af4c9c781d6d7a07be420762dfd065703 (diff) | |
download | bugs-65695473717fdcadbcc85cac9c469231f352c739.tar bugs-65695473717fdcadbcc85cac9c469231f352c739.tar.gz bugs-65695473717fdcadbcc85cac9c469231f352c739.tar.bz2 bugs-65695473717fdcadbcc85cac9c469231f352c739.tar.xz bugs-65695473717fdcadbcc85cac9c469231f352c739.zip |
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.pl | 34 |
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 " <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> | <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> |