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
429de3ba
Commit
429de3ba
authored
Oct 12, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 282090: Eliminate %classdesc in favor of Bugzilla::Classification methods
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=justdave
parent
b02a866f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
enter_bug.cgi
enter_bug.cgi
+2
-4
globals.pl
globals.pl
+2
-9
No files found.
enter_bug.cgi
View file @
429de3ba
...
...
@@ -56,7 +56,6 @@ use vars qw(
%versions
%target_milestone
$proddesc
$classdesc
)
;
# If we're using bug groups to restrict bug entry, we need to know who the
...
...
@@ -75,9 +74,9 @@ if (!defined $product || $product eq "") {
Bugzilla
->
login
();
if
(
!
Param
(
'useclassification'
)
)
{
#
just pick the default one
#
Just use a fake value for the Classification.
$cgi
->
param
(
-
name
=>
'classification'
,
-
value
=>
(
keys
%::
classdesc
)[
0
]
);
-
value
=>
'__all'
);
}
if
(
!
$cgi
->
param
(
'classification'
))
{
...
...
@@ -142,7 +141,6 @@ if (!defined $product || $product eq "") {
}
$vars
->
{
'proddesc'
}
=
\%
products
;
$vars
->
{
'classifications'
}
=
\%
classifications
;
$vars
->
{
'classdesc'
}
=
\%::
classdesc
;
$vars
->
{
'target'
}
=
"enter_bug.cgi"
;
$vars
->
{
'format'
}
=
$cgi
->
param
(
'format'
);
...
...
globals.pl
View file @
429de3ba
...
...
@@ -58,7 +58,6 @@ sub globals_pl_sillyness {
$zz
=
@
main::
legal_versions
;
$zz
=
@
main::
milestoneurl
;
$zz
=
%
main::
proddesc
;
$zz
=
%
main::
classdesc
;
$zz
=
@
main::
prodmaxvotes
;
$zz
=
$
main::
template
;
$zz
=
$
main::
userid
;
...
...
@@ -162,12 +161,6 @@ sub GenerateVersionTable {
my
$mpart
=
$dotargetmilestone
?
", milestoneurl"
:
""
;
SendSQL
(
"SELECT name, description FROM classifications ORDER BY name"
);
while
(
@line
=
FetchSQLData
())
{
my
(
$n
,
$d
)
=
(
@line
);
$::classdesc
{
$n
}
=
$d
;
}
SendSQL
(
"SELECT name, description, votesperuser, disallownew$mpart "
.
"FROM products ORDER BY name"
);
while
(
@line
=
FetchSQLData
())
{
...
...
@@ -252,10 +245,10 @@ sub GenerateVersionTable {
'*::legal_bug_status'
,
'*::legal_resolution'
]));
print
$fh
(
Data::
Dumper
->
Dump
([
\
@::settable_resolution
,
\%::
proddesc
,
\%::
classifications
,
\%::
classdesc
,
\%::
classifications
,
\
@::enterable_products
,
\%::
prodmaxvotes
],
[
'*::settable_resolution'
,
'*::proddesc'
,
'*::classifications'
,
'*::classdesc'
,
'*::classifications'
,
'*::enterable_products'
,
'*::prodmaxvotes'
]));
if
(
$dotargetmilestone
)
{
...
...
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