summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm6
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 ;