1998-09-16 01:49:26 +04:00
|
|
|
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
|
|
|
#
|
1999-11-02 02:33:56 +03:00
|
|
|
# The contents of this file are subject to the Mozilla Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
1998-09-16 01:49:26 +04:00
|
|
|
# The Original Code is the Bugzilla Bug Tracking System.
|
1999-11-02 02:33:56 +03:00
|
|
|
#
|
1998-09-16 01:49:26 +04:00
|
|
|
# The Initial Developer of the Original Code is Netscape Communications
|
1999-11-02 02:33:56 +03:00
|
|
|
# Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
1998-09-16 01:49:26 +04:00
|
|
|
# Contributor(s): Terry Weissman <terry@mozilla.org>
|
|
|
|
|
|
|
|
use diagnostics;
|
|
|
|
use strict;
|
|
|
|
|
2000-03-29 01:31:24 +04:00
|
|
|
use RelationSet;
|
|
|
|
|
1999-10-19 03:57:58 +04:00
|
|
|
# Shut up misguided -w warnings about "used only once". For some reason,
|
|
|
|
# "use vars" chokes on me when I try it here.
|
|
|
|
|
|
|
|
sub bug_form_pl_sillyness {
|
|
|
|
my $zz;
|
|
|
|
$zz = %::FORM;
|
|
|
|
$zz = %::components;
|
|
|
|
$zz = %::prodmaxvotes;
|
|
|
|
$zz = %::versions;
|
2000-02-17 08:15:23 +03:00
|
|
|
$zz = @::legal_keywords;
|
1999-10-19 03:57:58 +04:00
|
|
|
$zz = @::legal_opsys;
|
|
|
|
$zz = @::legal_platform;
|
|
|
|
$zz = @::legal_product;
|
|
|
|
$zz = @::legal_priority;
|
|
|
|
$zz = @::legal_resolution_no_dup;
|
|
|
|
$zz = @::legal_severity;
|
2000-03-21 19:47:06 +03:00
|
|
|
$zz = %::target_milestone;
|
1999-10-19 03:57:58 +04:00
|
|
|
}
|
1999-03-26 05:34:12 +03:00
|
|
|
|
1999-05-11 02:08:58 +04:00
|
|
|
my $loginok = quietly_check_login();
|
1999-03-11 19:30:54 +03:00
|
|
|
|
1999-05-27 18:13:41 +04:00
|
|
|
my $id = $::FORM{'id'};
|
|
|
|
|
1998-09-16 01:49:26 +04:00
|
|
|
my $query = "
|
|
|
|
select
|
1999-10-08 03:54:52 +04:00
|
|
|
bugs.bug_id,
|
1998-09-16 01:49:26 +04:00
|
|
|
product,
|
|
|
|
version,
|
|
|
|
rep_platform,
|
|
|
|
op_sys,
|
|
|
|
bug_status,
|
|
|
|
resolution,
|
|
|
|
priority,
|
|
|
|
bug_severity,
|
|
|
|
component,
|
|
|
|
assigned_to,
|
|
|
|
reporter,
|
|
|
|
bug_file_loc,
|
|
|
|
short_desc,
|
1999-01-28 00:17:10 +03:00
|
|
|
target_milestone,
|
|
|
|
qa_contact,
|
|
|
|
status_whiteboard,
|
2000-03-08 00:56:02 +03:00
|
|
|
date_format(creation_ts,'%Y-%m-%d %H:%i'),
|
1999-05-25 23:22:31 +04:00
|
|
|
groupset,
|
1999-10-08 03:54:52 +04:00
|
|
|
delta_ts,
|
|
|
|
sum(votes.count)
|
|
|
|
from bugs left join votes using(bug_id)
|
|
|
|
where bugs.bug_id = $id
|
|
|
|
and bugs.groupset & $::usergroupset = bugs.groupset
|
|
|
|
group by bugs.bug_id";
|
1998-09-16 01:49:26 +04:00
|
|
|
|
|
|
|
SendSQL($query);
|
|
|
|
my %bug;
|
|
|
|
my @row;
|
|
|
|
if (@row = FetchSQLData()) {
|
|
|
|
my $count = 0;
|
|
|
|
foreach my $field ("bug_id", "product", "version", "rep_platform",
|
|
|
|
"op_sys", "bug_status", "resolution", "priority",
|
|
|
|
"bug_severity", "component", "assigned_to", "reporter",
|
1999-01-28 00:17:10 +03:00
|
|
|
"bug_file_loc", "short_desc", "target_milestone",
|
1999-03-11 19:30:54 +03:00
|
|
|
"qa_contact", "status_whiteboard", "creation_ts",
|
1999-10-08 03:54:52 +04:00
|
|
|
"groupset", "delta_ts", "votes") {
|
1998-09-16 01:49:26 +04:00
|
|
|
$bug{$field} = shift @row;
|
|
|
|
if (!defined $bug{$field}) {
|
|
|
|
$bug{$field} = "";
|
|
|
|
}
|
|
|
|
$count++;
|
|
|
|
}
|
|
|
|
} else {
|
1999-05-27 18:13:41 +04:00
|
|
|
SendSQL("select groupset from bugs where bug_id = $id");
|
1999-05-11 02:08:58 +04:00
|
|
|
if (@row = FetchSQLData()) {
|
|
|
|
print "<H1>Permission denied.</H1>\n";
|
|
|
|
if ($loginok) {
|
|
|
|
print "Sorry; you do not have the permissions necessary to see\n";
|
1999-05-27 18:13:41 +04:00
|
|
|
print "bug $id.\n";
|
1999-05-11 02:08:58 +04:00
|
|
|
} else {
|
1999-05-27 18:13:41 +04:00
|
|
|
print "Sorry; bug $id can only be viewed when logged\n";
|
1999-05-11 02:08:58 +04:00
|
|
|
print "into an account with the appropriate permissions. To\n";
|
|
|
|
print "see this bug, you must first\n";
|
1999-05-27 18:13:41 +04:00
|
|
|
print "<a href=\"show_bug.cgi?id=$id&GoAheadAndLogIn=1\">";
|
1999-05-11 02:08:58 +04:00
|
|
|
print "log in</a>.";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
print "<H1>Bug not found</H1>\n";
|
1999-05-27 18:13:41 +04:00
|
|
|
print "There does not seem to be a bug numbered $id.\n";
|
1999-05-11 02:08:58 +04:00
|
|
|
}
|
2000-01-15 02:17:49 +03:00
|
|
|
PutFooter();
|
1999-05-11 02:08:58 +04:00
|
|
|
exit;
|
1998-09-16 01:49:26 +04:00
|
|
|
}
|
|
|
|
|
2000-02-17 08:15:23 +03:00
|
|
|
my $assignedtoid = $bug{'assigned_to'};
|
|
|
|
my $reporterid = $bug{'reporter'};
|
|
|
|
my $qacontactid = $bug{'qa_contact'};
|
|
|
|
|
1998-09-16 01:49:26 +04:00
|
|
|
$bug{'assigned_to'} = DBID_to_name($bug{'assigned_to'});
|
|
|
|
$bug{'reporter'} = DBID_to_name($bug{'reporter'});
|
2000-02-17 08:15:23 +03:00
|
|
|
|
|
|
|
print qq{<FORM NAME="changeform" METHOD="POST" ACTION="process_bug.cgi">\n};
|
|
|
|
|
|
|
|
# foreach my $i (sort(keys(%bug))) {
|
|
|
|
# my $q = value_quote($bug{$i});
|
|
|
|
# print qq{<INPUT TYPE="HIDDEN" NAME="orig-$i" VALUE="$q">\n};
|
|
|
|
# }
|
|
|
|
|
2000-03-10 21:01:32 +03:00
|
|
|
$bug{'long_desc'} = GetLongDescriptionAsHTML($id);
|
1999-05-25 23:22:31 +04:00
|
|
|
my $longdesclength = length($bug{'long_desc'});
|
1998-09-16 01:49:26 +04:00
|
|
|
|
|
|
|
GetVersionTable();
|
|
|
|
|
2000-02-17 08:15:23 +03:00
|
|
|
|
|
|
|
|
1998-09-16 01:49:26 +04:00
|
|
|
#
|
|
|
|
# These should be read from the database ...
|
|
|
|
#
|
|
|
|
|
|
|
|
my $resolution_popup = make_options(\@::legal_resolution_no_dup,
|
|
|
|
$bug{'resolution'});
|
|
|
|
my $platform_popup = make_options(\@::legal_platform, $bug{'rep_platform'});
|
|
|
|
my $priority_popup = make_options(\@::legal_priority, $bug{'priority'});
|
|
|
|
my $sev_popup = make_options(\@::legal_severity, $bug{'bug_severity'});
|
|
|
|
|
|
|
|
|
|
|
|
my $component_popup = make_options($::components{$bug{'product'}},
|
|
|
|
$bug{'component'});
|
|
|
|
|
2000-03-29 01:31:24 +04:00
|
|
|
my $ccSet = new RelationSet;
|
|
|
|
$ccSet->mergeFromDB("select who from cc where bug_id=$id");
|
1998-09-16 01:49:26 +04:00
|
|
|
my $cc_element = '<INPUT NAME=cc SIZE=30 VALUE="' .
|
2000-03-29 01:31:24 +04:00
|
|
|
$ccSet->toString() . '">';
|
1998-09-16 01:49:26 +04:00
|
|
|
|
|
|
|
|
|
|
|
my $URL = $bug{'bug_file_loc'};
|
|
|
|
|
|
|
|
if (defined $URL && $URL ne "none" && $URL ne "NULL" && $URL ne "") {
|
|
|
|
$URL = "<B><A HREF=\"$URL\">URL:</A></B>";
|
|
|
|
} else {
|
|
|
|
$URL = "<B>URL:</B>";
|
|
|
|
}
|
|
|
|
|
|
|
|
print "
|
1999-05-25 23:22:31 +04:00
|
|
|
<INPUT TYPE=HIDDEN NAME=\"delta_ts\" VALUE=\"$bug{'delta_ts'}\">
|
|
|
|
<INPUT TYPE=HIDDEN NAME=\"longdesclength\" VALUE=\"$longdesclength\">
|
1999-05-27 18:13:41 +04:00
|
|
|
<INPUT TYPE=HIDDEN NAME=\"id\" VALUE=$id>
|
1998-09-16 01:49:26 +04:00
|
|
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR>
|
1999-04-28 01:33:26 +04:00
|
|
|
<TD ALIGN=RIGHT><B>Bug#:</B></TD><TD><A HREF=\"show_bug.cgi?id=$bug{'bug_id'}\">$bug{'bug_id'}</A></TD>
|
1998-09-16 01:49:26 +04:00
|
|
|
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#rep_platform\">Platform:</A></B></TD>
|
|
|
|
<TD><SELECT NAME=rep_platform>$platform_popup</SELECT></TD>
|
|
|
|
<TD ALIGN=RIGHT><B>Version:</B></TD>
|
|
|
|
<TD><SELECT NAME=version>" .
|
|
|
|
make_options($::versions{$bug{'product'}}, $bug{'version'}) .
|
|
|
|
"</SELECT></TD>
|
|
|
|
</TR><TR>
|
|
|
|
<TD ALIGN=RIGHT><B>Product:</B></TD>
|
|
|
|
<TD><SELECT NAME=product>" .
|
|
|
|
make_options(\@::legal_product, $bug{'product'}) .
|
|
|
|
"</SELECT></TD>
|
1999-01-15 23:39:20 +03:00
|
|
|
<TD ALIGN=RIGHT><B>OS:</B></TD>
|
|
|
|
<TD><SELECT NAME=op_sys>" .
|
|
|
|
make_options(\@::legal_opsys, $bug{'op_sys'}) .
|
|
|
|
"</SELECT><TD ALIGN=RIGHT><B>Reporter:</B></TD><TD>$bug{'reporter'}</TD>
|
1998-09-16 01:49:26 +04:00
|
|
|
</TR><TR>
|
|
|
|
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html\">Status:</A></B></TD>
|
|
|
|
<TD>$bug{'bug_status'}</TD>
|
|
|
|
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#priority\">Priority:</A></B></TD>
|
|
|
|
<TD><SELECT NAME=priority>$priority_popup</SELECT></TD>
|
|
|
|
<TD ALIGN=RIGHT><B>Cc:</B></TD>
|
|
|
|
<TD> $cc_element </TD>
|
|
|
|
</TR><TR>
|
|
|
|
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html\">Resolution:</A></B></TD>
|
|
|
|
<TD>$bug{'resolution'}</TD>
|
|
|
|
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#severity\">Severity:</A></B></TD>
|
|
|
|
<TD><SELECT NAME=bug_severity>$sev_popup</SELECT></TD>
|
1999-02-04 20:13:52 +03:00
|
|
|
<TD ALIGN=RIGHT><B><A HREF=\"describecomponents.cgi?product=" .
|
|
|
|
url_quote($bug{'product'}) . "\">Component:</A></B></TD>
|
1998-09-16 01:49:26 +04:00
|
|
|
<TD><SELECT NAME=component>$component_popup</SELECT></TD>
|
|
|
|
</TR><TR>
|
|
|
|
<TD ALIGN=RIGHT><B><A HREF=\"bug_status.html#assigned_to\">Assigned To:
|
|
|
|
</A></B></TD>
|
1999-01-28 00:17:10 +03:00
|
|
|
<TD>$bug{'assigned_to'}</TD>";
|
|
|
|
|
|
|
|
if (Param("usetargetmilestone")) {
|
1999-02-03 05:46:51 +03:00
|
|
|
my $url = "";
|
|
|
|
if (defined $::milestoneurl{$bug{'product'}}) {
|
|
|
|
$url = $::milestoneurl{$bug{'product'}};
|
|
|
|
}
|
|
|
|
if ($url eq "") {
|
|
|
|
$url = "notargetmilestone.html";
|
|
|
|
}
|
2000-03-29 01:31:24 +04:00
|
|
|
if ($bug{'target_milestone'} eq "") {
|
|
|
|
$bug{'target_milestone'} = " ";
|
|
|
|
}
|
1999-01-28 00:17:10 +03:00
|
|
|
print "
|
1999-02-03 05:46:51 +03:00
|
|
|
<TD ALIGN=RIGHT><A href=\"$url\"><B>Target Milestone:</B></A></TD>
|
1999-01-28 00:17:10 +03:00
|
|
|
<TD><SELECT NAME=target_milestone>" .
|
2000-03-21 19:47:06 +03:00
|
|
|
make_options($::target_milestone{$bug{'product'}},
|
1999-01-28 00:17:10 +03:00
|
|
|
$bug{'target_milestone'}) .
|
|
|
|
"</SELECT></TD>";
|
|
|
|
}
|
|
|
|
|
|
|
|
print "
|
|
|
|
</TR>";
|
|
|
|
|
|
|
|
if (Param("useqacontact")) {
|
|
|
|
my $name = $bug{'qa_contact'} > 0 ? DBID_to_name($bug{'qa_contact'}) : "";
|
|
|
|
print "
|
|
|
|
<TR>
|
|
|
|
<TD ALIGN=\"RIGHT\"><B>QA Contact:</B>
|
|
|
|
<TD COLSPAN=6>
|
|
|
|
<INPUT NAME=qa_contact VALUE=\"" .
|
|
|
|
value_quote($name) .
|
|
|
|
"\" SIZE=60></
|
|
|
|
</TR>";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "
|
|
|
|
<TR>
|
1998-09-16 01:49:26 +04:00
|
|
|
<TD ALIGN=\"RIGHT\">$URL
|
|
|
|
<TD COLSPAN=6>
|
|
|
|
<INPUT NAME=bug_file_loc VALUE=\"$bug{'bug_file_loc'}\" SIZE=60></TD>
|
|
|
|
</TR><TR>
|
|
|
|
<TD ALIGN=\"RIGHT\"><B>Summary:</B>
|
|
|
|
<TD COLSPAN=6>
|
|
|
|
<INPUT NAME=short_desc VALUE=\"" .
|
|
|
|
value_quote($bug{'short_desc'}) .
|
|
|
|
"\" SIZE=60></TD>
|
1999-01-28 00:17:10 +03:00
|
|
|
</TR>";
|
|
|
|
|
|
|
|
if (Param("usestatuswhiteboard")) {
|
|
|
|
print "
|
|
|
|
<TR>
|
|
|
|
<TD ALIGN=\"RIGHT\"><B>Status Whiteboard:</B>
|
|
|
|
<TD COLSPAN=6>
|
|
|
|
<INPUT NAME=status_whiteboard VALUE=\"" .
|
|
|
|
value_quote($bug{'status_whiteboard'}) .
|
|
|
|
"\" SIZE=60></
|
|
|
|
</TR>";
|
|
|
|
}
|
|
|
|
|
2000-01-07 00:16:15 +03:00
|
|
|
if (@::legal_keywords) {
|
|
|
|
SendSQL("SELECT keyworddefs.name
|
|
|
|
FROM keyworddefs, keywords
|
|
|
|
WHERE keywords.bug_id = $id AND keyworddefs.id = keywords.keywordid
|
|
|
|
ORDER BY keyworddefs.name");
|
|
|
|
my @list;
|
|
|
|
while (MoreSQLData()) {
|
|
|
|
push(@list, FetchOneColumn());
|
|
|
|
}
|
2000-01-17 14:54:58 +03:00
|
|
|
my $value = value_quote(join(', ', @list));
|
2000-01-07 00:16:15 +03:00
|
|
|
print qq{
|
|
|
|
<TR>
|
|
|
|
<TD ALIGN=right><B><A HREF="describekeywords.cgi">Keywords</A>:</B>
|
|
|
|
<TD COLSPAN=6><INPUT NAME="keywords" VALUE="$value" SIZE=60></TD>
|
|
|
|
</TR>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
1999-04-08 18:40:46 +04:00
|
|
|
print "<tr><td align=right><B>Attachments:</b></td>\n";
|
1999-05-27 18:13:41 +04:00
|
|
|
SendSQL("select attach_id, creation_ts, description from attachments where bug_id = $id");
|
1999-04-08 18:40:46 +04:00
|
|
|
while (MoreSQLData()) {
|
1999-05-27 18:13:41 +04:00
|
|
|
my ($attachid, $date, $desc) = (FetchSQLData());
|
1999-04-08 18:40:46 +04:00
|
|
|
if ($date =~ /^(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/) {
|
|
|
|
$date = "$3/$4/$2 $5:$6";
|
|
|
|
}
|
1999-05-27 18:13:41 +04:00
|
|
|
my $link = "showattachment.cgi?attach_id=$attachid";
|
1999-04-08 18:40:46 +04:00
|
|
|
$desc = value_quote($desc);
|
|
|
|
print qq{<td><a href="$link">$date</a></td><td colspan=4>$desc</td></tr><tr><td></td>};
|
1999-05-27 18:13:41 +04:00
|
|
|
}
|
1999-06-15 08:25:29 +04:00
|
|
|
print "<td colspan=6><a href=\"createattachment.cgi?id=$id\">Create a new attachment</a> (proposed patch, testcase, etc.)</td></tr></table>\n";
|
1999-05-27 18:13:41 +04:00
|
|
|
|
|
|
|
|
|
|
|
sub EmitDependList {
|
|
|
|
my ($desc, $myfield, $targetfield) = (@_);
|
|
|
|
print "<th align=right>$desc:</th><td>";
|
|
|
|
my @list;
|
|
|
|
SendSQL("select dependencies.$targetfield, bugs.bug_status
|
|
|
|
from dependencies, bugs
|
|
|
|
where dependencies.$myfield = $id
|
|
|
|
and bugs.bug_id = dependencies.$targetfield
|
|
|
|
order by dependencies.$targetfield");
|
|
|
|
while (MoreSQLData()) {
|
|
|
|
my ($i, $stat) = (FetchSQLData());
|
|
|
|
push(@list, $i);
|
|
|
|
my $opened = ($stat eq "NEW" || $stat eq "ASSIGNED" ||
|
|
|
|
$stat eq "REOPENED");
|
|
|
|
if (!$opened) {
|
|
|
|
print "<strike>";
|
|
|
|
}
|
|
|
|
print qq{<a href="show_bug.cgi?id=$i">$i</a>};
|
|
|
|
if (!$opened) {
|
|
|
|
print "</strike>";
|
|
|
|
}
|
|
|
|
print " ";
|
|
|
|
}
|
|
|
|
print "</td><td><input name=$targetfield value=\"" .
|
|
|
|
join(',', @list) . "\"></td>\n";
|
1999-04-08 18:40:46 +04:00
|
|
|
}
|
|
|
|
|
1999-05-27 18:13:41 +04:00
|
|
|
if (Param("usedependencies")) {
|
|
|
|
print "<table><tr>\n";
|
2000-02-02 20:43:34 +03:00
|
|
|
EmitDependList("Bug $id depends on", "blocked", "dependson");
|
1999-05-27 18:13:41 +04:00
|
|
|
print qq{
|
|
|
|
<td rowspan=2><a href="showdependencytree.cgi?id=$id">Show dependency tree</a>
|
|
|
|
};
|
|
|
|
if (Param("webdotbase") ne "") {
|
|
|
|
print qq{
|
|
|
|
<br><a href="showdependencygraph.cgi?id=$id">Show dependency graph</a>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
print "</td></tr><tr>";
|
2000-02-02 20:43:34 +03:00
|
|
|
EmitDependList("Bug $id blocks", "dependson", "blocked");
|
1999-05-27 18:13:41 +04:00
|
|
|
print "</tr></table>\n";
|
|
|
|
}
|
1999-01-28 00:17:10 +03:00
|
|
|
|
1999-10-08 03:54:52 +04:00
|
|
|
if ($::prodmaxvotes{$bug{'product'}}) {
|
|
|
|
print qq{
|
|
|
|
<table><tr>
|
|
|
|
<th><a href="votehelp.html">Votes</a> for bug $id:</th><td>
|
|
|
|
<a href="showvotes.cgi?bug_id=$id">$bug{'votes'}</a>
|
|
|
|
<a href="showvotes.cgi?voteon=$id">Vote for this bug</a>
|
|
|
|
</td></tr></table>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
1999-01-28 00:17:10 +03:00
|
|
|
print "
|
1998-09-16 01:49:26 +04:00
|
|
|
<br>
|
|
|
|
<B>Additional Comments:</B>
|
|
|
|
<BR>
|
1999-03-11 19:30:54 +03:00
|
|
|
<TEXTAREA WRAP=HARD NAME=comment ROWS=5 COLS=80></TEXTAREA><BR>";
|
|
|
|
|
|
|
|
|
|
|
|
if ($::usergroupset ne '0') {
|
|
|
|
SendSQL("select bit, description, (bit & $bug{'groupset'} != 0) from groups where bit & $::usergroupset != 0 and isbuggroup != 0 order by bit");
|
|
|
|
while (MoreSQLData()) {
|
|
|
|
my ($bit, $description, $ison) = (FetchSQLData());
|
|
|
|
my $check0 = !$ison ? " SELECTED" : "";
|
|
|
|
my $check1 = $ison ? " SELECTED" : "";
|
|
|
|
print "<select name=bit-$bit><option value=0$check0>\n";
|
|
|
|
print "People not in the \"$description\" group can see this bug\n";
|
|
|
|
print "<option value=1$check1>\n";
|
|
|
|
print "Only people in the \"$description\" group can see this bug\n";
|
|
|
|
print "</select><br>\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
print "<br>
|
1998-09-16 01:49:26 +04:00
|
|
|
<INPUT TYPE=radio NAME=knob VALUE=none CHECKED>
|
|
|
|
Leave as <b>$bug{'bug_status'} $bug{'resolution'}</b><br>";
|
|
|
|
|
1999-03-11 19:30:54 +03:00
|
|
|
|
1998-09-16 01:49:26 +04:00
|
|
|
# knum is which knob number we're generating, in javascript terms.
|
|
|
|
|
|
|
|
my $knum = 1;
|
|
|
|
|
|
|
|
my $status = $bug{'bug_status'};
|
|
|
|
|
2000-02-17 18:53:40 +03:00
|
|
|
# In the below, if the person hasn't logged in ($::userid == 0), then
|
|
|
|
# we treat them as if they can do anything. That's because we don't
|
|
|
|
# know why they haven't logged in; it may just be because they don't
|
|
|
|
# use cookies. Display everything as if they have all the permissions
|
|
|
|
# in the world; their permissions will get checked when they log in
|
|
|
|
# and actually try to make the change.
|
|
|
|
|
|
|
|
my $canedit = UserInGroup("editbugs") || ($::userid == 0);
|
2000-02-17 08:15:23 +03:00
|
|
|
my $canconfirm;
|
|
|
|
|
|
|
|
if ($status eq $::unconfirmedstate) {
|
2000-02-17 18:53:40 +03:00
|
|
|
$canconfirm = UserInGroup("canconfirm") || ($::userid == 0);
|
2000-02-17 08:15:23 +03:00
|
|
|
if ($canedit || $canconfirm) {
|
|
|
|
print "<INPUT TYPE=radio NAME=knob VALUE=confirm>";
|
|
|
|
print "Confirm bug (change status to <b>NEW</b>)<br>";
|
1998-09-16 01:49:26 +04:00
|
|
|
$knum++;
|
|
|
|
}
|
2000-02-17 08:15:23 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-02-17 18:53:40 +03:00
|
|
|
if ($canedit || $::userid == $assignedtoid ||
|
|
|
|
$::userid == $reporterid || $::userid == $qacontactid) {
|
2000-02-17 08:15:23 +03:00
|
|
|
if (IsOpenedState($status)) {
|
|
|
|
if ($status ne "ASSIGNED") {
|
|
|
|
print "<INPUT TYPE=radio NAME=knob VALUE=accept>";
|
|
|
|
my $extra = "";
|
|
|
|
if ($status eq $::unconfirmedstate && ($canconfirm || $canedit)) {
|
|
|
|
$extra = "confirm bug, ";
|
|
|
|
}
|
|
|
|
print "Accept bug (${extra}change status to <b>ASSIGNED</b>)<br>";
|
|
|
|
$knum++;
|
|
|
|
}
|
|
|
|
if ($bug{'resolution'} ne "") {
|
|
|
|
print "<INPUT TYPE=radio NAME=knob VALUE=clearresolution>\n";
|
|
|
|
print "Clear the resolution (remove the current resolution of\n";
|
|
|
|
print "<b>$bug{'resolution'}</b>)<br>\n";
|
|
|
|
$knum++;
|
|
|
|
}
|
|
|
|
print "<INPUT TYPE=radio NAME=knob VALUE=resolve>
|
1998-09-16 01:49:26 +04:00
|
|
|
Resolve bug, changing <A HREF=\"bug_status.html\">resolution</A> to
|
|
|
|
<SELECT NAME=resolution
|
|
|
|
ONCHANGE=\"document.changeform.knob\[$knum\].checked=true\">
|
|
|
|
$resolution_popup</SELECT><br>\n";
|
2000-02-17 08:15:23 +03:00
|
|
|
$knum++;
|
|
|
|
print "<INPUT TYPE=radio NAME=knob VALUE=duplicate>
|
1998-09-16 01:49:26 +04:00
|
|
|
Resolve bug, mark it as duplicate of bug #
|
|
|
|
<INPUT NAME=dup_id SIZE=6 ONCHANGE=\"document.changeform.knob\[$knum\].checked=true\"><br>\n";
|
2000-02-17 08:15:23 +03:00
|
|
|
$knum++;
|
|
|
|
my $assign_element = "<INPUT NAME=\"assigned_to\" SIZE=32 ONCHANGE=\"document.changeform.knob\[$knum\].checked=true\" VALUE=\"$bug{'assigned_to'}\">";
|
1998-09-16 01:49:26 +04:00
|
|
|
|
2000-02-17 08:15:23 +03:00
|
|
|
print "<INPUT TYPE=radio NAME=knob VALUE=reassign>
|
1998-09-16 01:49:26 +04:00
|
|
|
<A HREF=\"bug_status.html#assigned_to\">Reassign</A> bug to
|
|
|
|
$assign_element
|
|
|
|
<br>\n";
|
2000-02-17 08:15:23 +03:00
|
|
|
if ($status eq $::unconfirmedstate && ($canconfirm || $canedit)) {
|
|
|
|
print " <INPUT TYPE=checkbox NAME=andconfirm> and confirm bug (change status to <b>NEW</b>)<BR>";
|
|
|
|
}
|
|
|
|
$knum++;
|
|
|
|
print "<INPUT TYPE=radio NAME=knob VALUE=reassignbycomponent>
|
1998-09-16 01:49:26 +04:00
|
|
|
Reassign bug to owner of selected component<br>\n";
|
|
|
|
$knum++;
|
2000-02-17 08:15:23 +03:00
|
|
|
} else {
|
|
|
|
print "<INPUT TYPE=radio NAME=knob VALUE=reopen> Reopen bug<br>\n";
|
1998-09-16 01:49:26 +04:00
|
|
|
$knum++;
|
2000-02-17 08:15:23 +03:00
|
|
|
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++;
|
|
|
|
}
|
1998-09-16 01:49:26 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
print "
|
|
|
|
<INPUT TYPE=\"submit\" VALUE=\"Commit\">
|
|
|
|
<INPUT TYPE=\"reset\" VALUE=\"Reset\">
|
|
|
|
<INPUT TYPE=hidden name=form_name VALUE=process_bug>
|
|
|
|
<BR>
|
|
|
|
<FONT size=\"+1\"><B>
|
1999-05-27 18:13:41 +04:00
|
|
|
<A HREF=\"show_activity.cgi?id=$id\">View Bug Activity</A>
|
|
|
|
<A HREF=\"long_list.cgi?buglist=$id\">Format For Printing</A>
|
1998-09-16 01:49:26 +04:00
|
|
|
</B></FONT><BR>
|
|
|
|
</FORM>
|
1999-12-03 22:28:18 +03:00
|
|
|
<table><tr><td align=left><B>Description:</B></td>
|
|
|
|
<td align=right width=100%>Opened: $bug{'creation_ts'}</td></tr></table>
|
1998-09-16 01:49:26 +04:00
|
|
|
<HR>
|
1999-03-25 03:14:26 +03:00
|
|
|
";
|
2000-03-10 21:01:32 +03:00
|
|
|
print $bug{'long_desc'};
|
1999-03-25 03:14:26 +03:00
|
|
|
print "
|
1998-09-16 01:49:26 +04:00
|
|
|
<HR>\n";
|
|
|
|
|
|
|
|
# To add back option of editing the long description, insert after the above
|
|
|
|
# long_list.cgi line:
|
1999-05-27 18:13:41 +04:00
|
|
|
# <A HREF=\"edit_desc.cgi?id=$id\">Edit Long Description</A>
|
1998-09-16 01:49:26 +04:00
|
|
|
|
|
|
|
navigation_header();
|
|
|
|
|
2000-01-15 01:35:49 +03:00
|
|
|
PutFooter();
|
|
|
|
|
1999-01-28 00:17:10 +03:00
|
|
|
1;
|