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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
683e1063
Commit
683e1063
authored
Apr 12, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 285533: Bugzilla displays inactive enum values
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=justdave
parent
531a3a34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
checksetup.pl
checksetup.pl
+2
-2
globals.pl
globals.pl
+3
-1
No files found.
checksetup.pl
View file @
683e1063
...
@@ -1756,8 +1756,8 @@ sub PopulateEnumTable ($@) {
...
@@ -1756,8 +1756,8 @@ sub PopulateEnumTable ($@) {
@my_severities
=
(
'blocker'
,
'critical'
,
'major'
,
'normal'
,
'minor'
,
@my_severities
=
(
'blocker'
,
'critical'
,
'major'
,
'normal'
,
'minor'
,
'trivial'
,
'enhancement'
)
if
!
@my_severities
;
'trivial'
,
'enhancement'
)
if
!
@my_severities
;
@my_priorities
=
(
"P1"
,
"P2"
,
"P3"
,
"P4"
,
"P5"
)
if
!
@my_priorities
;
@my_priorities
=
(
"P1"
,
"P2"
,
"P3"
,
"P4"
,
"P5"
)
if
!
@my_priorities
;
@my_opsys
=
(
"
---"
,
"
All"
,
"Windows"
,
"Mac OS"
,
"Linux"
,
"Other"
)
if
!
@my_opsys
;
@my_opsys
=
(
"All"
,
"Windows"
,
"Mac OS"
,
"Linux"
,
"Other"
)
if
!
@my_opsys
;
@my_platforms
=
(
"
---"
,
"
All"
,
"PC"
,
"Macintosh"
,
"Other"
)
if
!
@my_platforms
;
@my_platforms
=
(
"All"
,
"PC"
,
"Macintosh"
,
"Other"
)
if
!
@my_platforms
;
PopulateEnumTable
(
'bug_severity'
,
@my_severities
);
PopulateEnumTable
(
'bug_severity'
,
@my_severities
);
PopulateEnumTable
(
'priority'
,
@my_priorities
);
PopulateEnumTable
(
'priority'
,
@my_priorities
);
...
...
globals.pl
View file @
683e1063
...
@@ -962,7 +962,9 @@ sub get_legal_field_values {
...
@@ -962,7 +962,9 @@ sub get_legal_field_values {
my
(
$field
)
=
@_
;
my
(
$field
)
=
@_
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$result_ref
=
$dbh
->
selectcol_arrayref
(
my
$result_ref
=
$dbh
->
selectcol_arrayref
(
"SELECT value FROM $field ORDER BY sortkey, value"
);
"SELECT value FROM $field
WHERE isactive = ?
ORDER BY sortkey, value"
,
undef
,
(
1
));
return
@$result_ref
;
return
@$result_ref
;
}
}
...
...
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