From bcab6fcb10aa88683490bef03c607173f9c0b063 Mon Sep 17 00:00:00 2001 From: Kent Rogers Date: Mon, 5 Jul 2010 14:49:52 -0700 Subject: Bug 514618: Allow restricting the visibility and values of fields by classification. r=mkanat, r=timello, a=mkanat --- Bugzilla/Classification.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Classification.pm') diff --git a/Bugzilla/Classification.pm b/Bugzilla/Classification.pm index c7cda11be..88ec4eb3b 100644 --- a/Bugzilla/Classification.pm +++ b/Bugzilla/Classification.pm @@ -20,11 +20,12 @@ use strict; package Bugzilla::Classification; use Bugzilla::Constants; +use Bugzilla::Field; use Bugzilla::Util; use Bugzilla::Error; use Bugzilla::Product; -use base qw(Bugzilla::Object); +use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object); ############################### #### Initialization #### @@ -111,6 +112,14 @@ sub _check_sortkey { return $sortkey; } +##################################### +# Implement Bugzilla::Field::Choice # +##################################### + +use constant FIELD_NAME => 'classification'; +use constant is_default => 0; +use constant is_active => 1; + ############################### #### Methods #### ############################### -- cgit v1.2.3-24-g4f1b