Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
0b954e5d
Commit
0b954e5d
authored
Oct 21, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 348923: Clean up a few more variable-scoping issues for mod_perl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
parent
810ac042
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
process_bug.cgi
process_bug.cgi
+6
-6
showdependencytree.cgi
showdependencytree.cgi
+3
-3
No files found.
process_bug.cgi
View file @
0b954e5d
...
...
@@ -71,7 +71,7 @@ $vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count();
my
@editable_bug_fields
=
editable_bug_fields
();
my
$requiremilestone
=
0
;
my
$PrivilegesRequired
=
0
;
local
our
$PrivilegesRequired
=
0
;
######################################################################
# Subroutines
...
...
@@ -729,7 +729,7 @@ sub ChangeStatus {
}
sub
ChangeResolution
{
my
(
$str
)
=
(
@_
);
my
(
$
bug
,
$
str
)
=
(
@_
);
my
$dbh
=
Bugzilla
->
dbh
;
my
$cgi
=
Bugzilla
->
cgi
;
...
...
@@ -1053,7 +1053,7 @@ SWITCH: for ($cgi->param('knob')) {
last
SWITCH
;
};
/^clearresolution$/
&&
CheckonComment
(
"clearresolution"
)
&&
do
{
ChangeResolution
(
''
);
ChangeResolution
(
$bug
,
''
);
last
SWITCH
;
};
/^(resolve|change_resolution)$/
&&
CheckonComment
(
"resolve"
)
&&
do
{
...
...
@@ -1081,7 +1081,7 @@ SWITCH: for ($cgi->param('knob')) {
ChangeStatus
(
'RESOLVED'
);
}
ChangeResolution
(
$cgi
->
param
(
'resolution'
));
ChangeResolution
(
$
bug
,
$
cgi
->
param
(
'resolution'
));
last
SWITCH
;
};
/^reassign$/
&&
CheckonComment
(
"reassign"
)
&&
do
{
...
...
@@ -1125,7 +1125,7 @@ SWITCH: for ($cgi->param('knob')) {
};
/^reopen$/
&&
CheckonComment
(
"reopen"
)
&&
do
{
ChangeStatus
(
'REOPENED'
);
ChangeResolution
(
''
);
ChangeResolution
(
$bug
,
''
);
last
SWITCH
;
};
/^verify$/
&&
CheckonComment
(
"verify"
)
&&
do
{
...
...
@@ -1184,7 +1184,7 @@ SWITCH: for ($cgi->param('knob')) {
_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
});
...
...
showdependencytree.cgi
View file @
0b954e5d
...
...
@@ -53,9 +53,9 @@ my $id = $cgi->param('id') || ThrowUserError('invalid_bug_id_or_alias');
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
};
################################################################################
...
...
@@ -63,7 +63,7 @@ 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment