diff options
-rw-r--r-- | Bugzilla/Search.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index a764babe4..24adf0094 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -870,6 +870,12 @@ sub init { my %chartfields = @{$dbh->selectcol_arrayref( q{SELECT name, id FROM fielddefs}, { Columns=>[1,2] })}; + if (!$user->is_timetracker) { + foreach my $tt_field (TIMETRACKING_FIELDS) { + delete $chartfields{$tt_field}; + } + } + my ($sequence, $chartid); $row = 0; for ($chart=-1 ; |