diff options
author | lpsolit%gmail.com <> | 2006-02-21 22:08:18 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-02-21 22:08:18 +0100 |
commit | da9ac9431cc959eedef78a5118ac3b4c6fbf7d03 (patch) | |
tree | 840e490e59e6a28c083b31a7281877a74105b997 /Bugzilla.pm | |
parent | 7780ace7e977d39ef9c904697e355248becf192b (diff) | |
download | bugzilla-da9ac9431cc959eedef78a5118ac3b4c6fbf7d03.tar.gz bugzilla-da9ac9431cc959eedef78a5118ac3b4c6fbf7d03.tar.xz |
Bug 287325: Ability to add custom plain-text fields to a Bug - Patch by Myk Melez <myk@mozilla.org> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 2a0a66014..eca0ebf63 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -35,6 +35,7 @@ use Bugzilla::Template; use Bugzilla::User; use Bugzilla::Error; use Bugzilla::Util; +use Bugzilla::Field; use File::Basename; @@ -276,6 +277,17 @@ sub switch_to_main_db { return $class->dbh; } +sub get_fields { + my $class = shift; + my $criteria = shift; + return Bugzilla::Field::match($criteria); +} + +sub custom_field_names { + # Get a list of custom fields and convert it into a list of their names. + return map($_->{name}, Bugzilla::Field::match({ custom=>1, obsolete=>0 })); +} + # Private methods # Per process cleanup |