diff options
author | lpsolit%gmail.com <> | 2008-02-25 22:06:24 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-02-25 22:06:24 +0000 |
commit | 816eb1e9bd788b2b3468481281793639c824996d (patch) | |
tree | 9e272644a04e3dec038785e4d819ff9fe25fe1e6 /Bugzilla/Field.pm | |
parent | 8ef50bdaba56ee100821c51ff141e00d26723dc7 (diff) | |
download | bugs-816eb1e9bd788b2b3468481281793639c824996d.tar bugs-816eb1e9bd788b2b3468481281793639c824996d.tar.gz bugs-816eb1e9bd788b2b3468481281793639c824996d.tar.bz2 bugs-816eb1e9bd788b2b3468481281793639c824996d.tar.xz bugs-816eb1e9bd788b2b3468481281793639c824996d.zip |
Bug 415652: Implement Bugzilla->active_custom_fields - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Field.pm')
-rw-r--r-- | Bugzilla/Field.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm index 5272f0ed6..0d7479034 100644 --- a/Bugzilla/Field.pm +++ b/Bugzilla/Field.pm @@ -30,17 +30,14 @@ Bugzilla::Field - a particular piece of information about bugs print Dumper(Bugzilla->get_fields()); # Display information about non-obsolete custom fields. - print Dumper(Bugzilla->get_fields({ obsolete => 1, custom => 1 })); - - # Display a list of the names of non-obsolete custom fields. - print Bugzilla->custom_field_names; + print Dumper(Bugzilla->active_custom_fields); use Bugzilla::Field; # Display information about non-obsolete custom fields. # Bugzilla->get_fields() is a wrapper around Bugzilla::Field->match(), # so both methods take the same arguments. - print Dumper(Bugzilla::Field->match({ obsolete => 1, custom => 1 })); + print Dumper(Bugzilla::Field->match({ obsolete => 0, custom => 1 })); # Create or update a custom field or field definition. my $field = Bugzilla::Field->create( |