summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Field.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-17 22:49:23 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-17 22:49:23 +0100
commit779b283127b310bb8676d11fed7a071ef1ce4ceb (patch)
treea73f4042e09fddab7a53377aec05e4be53595e16 /Bugzilla/Field.pm
parent72c4efb6b8620e0e56ff6741971b952d468ce10d (diff)
downloadbugzilla-779b283127b310bb8676d11fed7a071ef1ce4ceb.tar.gz
bugzilla-779b283127b310bb8676d11fed7a071ef1ce4ceb.tar.xz
Bug 529201: Add help for every single field to fields.html
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Field.pm')
-rw-r--r--Bugzilla/Field.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm
index c2ab6e11b..6b9ceb7c0 100644
--- a/Bugzilla/Field.pm
+++ b/Bugzilla/Field.pm
@@ -547,6 +547,24 @@ sub legal_values {
=over
+=item C<is_timetracking>
+
+True if this is a time-tracking field that should only be shown to users
+in the C<timetrackinggroup>.
+
+=back
+
+=cut
+
+sub is_timetracking {
+ my ($self) = @_;
+ return grep($_ eq $self->name, TIMETRACKING_FIELDS) ? 1 : 0;
+}
+
+=pod
+
+=over
+
=item C<visibility_field>
What field controls this field's visibility? Returns a C<Bugzilla::Field>