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
94dcd5ed
Commit
94dcd5ed
authored
Mar 16, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 284811 : Remove %FORM from enter_bug.cgi classification code
Patch by Teemu Mannermaa <wicked@etlicon.fi> r=LpSolit a=myk
parent
495cb15f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
enter_bug.cgi
enter_bug.cgi
+9
-10
No files found.
enter_bug.cgi
View file @
94dcd5ed
...
...
@@ -76,10 +76,10 @@ if (!defined $product) {
if
(
!
Param
(
'useclassification'
)
)
{
# just pick the default one
$
::FORM
{
'classification'
}
=
(
keys
%::
classdesc
)[
0
]
;
$
cgi
->
param
(
-
name
=>
'classification'
,
-
value
=>
(
keys
%::
classdesc
)[
0
])
;
}
if
(
!
defined
$::FORM
{
'classification'
}
)
{
if
(
!
$cgi
->
param
(
'classification'
)
)
{
my
%
classdesc
;
my
%
classifications
;
...
...
@@ -97,7 +97,7 @@ if (!defined $product) {
$vars
->
{
'classifications'
}
=
\%
classifications
;
$vars
->
{
'target'
}
=
"enter_bug.cgi"
;
$vars
->
{
'format'
}
=
$
::FORM
{
'format'
}
;
$vars
->
{
'format'
}
=
$
cgi
->
param
(
'format'
)
;
$vars
->
{
'cloned_bug_id'
}
=
$cgi
->
param
(
'cloned_bug_id'
);
...
...
@@ -106,15 +106,14 @@ if (!defined $product) {
||
ThrowTemplateError
(
$template
->
error
());
exit
;
}
$::FORM
{
'classification'
}
=
(
keys
%
classdesc
)[
0
];
$::MFORM
{
'classification'
}
=
[
$::FORM
{
'classification'
}];
$cgi
->
param
(
-
name
=>
'classification'
,
-
value
=>
(
keys
%
classdesc
)[
0
]);
}
my
%
products
;
foreach
my
$p
(
@enterable_products
)
{
if
(
CanEnterProduct
(
$p
))
{
if
(
IsInClassification
(
$::FORM
{
'classification'
}
,
$p
)
||
$
::FORM
{
'classification'
}
eq
"__all"
)
{
if
(
IsInClassification
(
scalar
$cgi
->
param
(
'classification'
)
,
$p
)
||
$
cgi
->
param
(
'classification'
)
eq
"__all"
)
{
$products
{
$p
}
=
$::proddesc
{
$p
};
}
}
...
...
@@ -129,11 +128,11 @@ if (!defined $product) {
if
(
!
Param
(
'useclassification'
)
)
{
@
{
$classifications
{
"all"
}}
=
keys
%
products
;
}
elsif
(
$
::FORM
{
'classification'
}
eq
"__all"
)
{
elsif
(
$
cgi
->
param
(
'classification'
)
eq
"__all"
)
{
%
classifications
=
%::
classifications
;
}
else
{
$classifications
{
$
::FORM
{
'classification'
}
}
=
$::classifications
{
$
::FORM
{
'classification'
}
};
$classifications
{
$
cgi
->
param
(
'classification'
)
}
=
$::classifications
{
$
cgi
->
param
(
'classification'
)
};
}
$vars
->
{
'proddesc'
}
=
\%
products
;
$vars
->
{
'classifications'
}
=
\%
classifications
;
...
...
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