my @editable_bug_fields = editable_bug_fields();
my $requiremilestone = 0;
-my $PrivilegesRequired = 0;
+local our $PrivilegesRequired = 0;
######################################################################
# Subroutines
}
sub ChangeResolution {
- my ($str) = (@_);
+ my ($bug, $str) = (@_);
my $dbh = Bugzilla->dbh;
my $cgi = Bugzilla->cgi;
last SWITCH;
};
/^clearresolution$/ && CheckonComment( "clearresolution" ) && do {
- ChangeResolution('');
+ ChangeResolution($bug, '');
last SWITCH;
};
/^(resolve|change_resolution)$/ && CheckonComment( "resolve" ) && do {
ChangeStatus('RESOLVED');
}
- ChangeResolution($cgi->param('resolution'));
+ ChangeResolution($bug, $cgi->param('resolution'));
last SWITCH;
};
/^reassign$/ && CheckonComment( "reassign" ) && do {
};
/^reopen$/ && CheckonComment( "reopen" ) && do {
ChangeStatus('REOPENED');
- ChangeResolution('');
+ ChangeResolution($bug, '');
last SWITCH;
};
/^verify$/ && CheckonComment( "verify" ) && do {
_remove_remaining_time();
ChangeStatus('RESOLVED');
- ChangeResolution('DUPLICATE');
+ ChangeResolution($bug, 'DUPLICATE');
my $comment = $cgi->param('comment');
$comment .= "\n\n"
. get_text('bug_duplicate_of', { dupe_of => $duplicate });
ValidateBugID($id);
my $current_bug = new Bugzilla::Bug($id);
-my $hide_resolved = $cgi->param('hide_resolved') ? 1 : 0;
+local our $hide_resolved = $cgi->param('hide_resolved') ? 1 : 0;
-my $maxdepth = $cgi->param('maxdepth') || 0;
+local our $maxdepth = $cgi->param('maxdepth') || 0;
if ($maxdepth !~ /^\d+$/) { $maxdepth = 0 };
################################################################################
################################################################################
# Stores the greatest depth to which either tree goes.
-my $realdepth = 0;
+local our $realdepth = 0;
# Generate the tree of bugs that this bug depends on and a list of IDs
# appearing in the tree.