summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Field.pm
diff options
context:
space:
mode:
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>