diff options
author | mkanat%kerio.com <> | 2005-04-12 10:27:57 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-04-12 10:27:57 +0200 |
commit | 683e10636b80dcf6b9e30fb6c41a64cc5620983d (patch) | |
tree | ff8d50ae319f5832477b071571a2fc365cfb30ae /globals.pl | |
parent | 531a3a34b85bd3c6284733869046270cc2d5300e (diff) | |
download | bugzilla-683e10636b80dcf6b9e30fb6c41a64cc5620983d.tar.gz bugzilla-683e10636b80dcf6b9e30fb6c41a64cc5620983d.tar.xz |
Bug 285533: Bugzilla displays inactive enum values
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl index ec8c52d4d..a9c3a36ce 100644 --- a/globals.pl +++ b/globals.pl @@ -962,7 +962,9 @@ sub get_legal_field_values { my ($field) = @_; my $dbh = Bugzilla->dbh; 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; } |