From 2f804027b44c5790d4547f3161bff28266150bef Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 10 Nov 2009 16:31:47 +0000 Subject: Bug 505039: Use $user->is_timetracker instead of $user->in_group(Bugzilla->params->{'timetrackinggroup'}) - Patch by XqueZme r/a=LpSolit --- template/en/default/bug/comments.html.tmpl | 2 +- template/en/default/bug/create/create.html.tmpl | 4 ++-- template/en/default/bug/edit.html.tmpl | 4 ++-- template/en/default/bug/show-multiple.html.tmpl | 2 +- template/en/default/bug/show.xml.tmpl | 2 +- template/en/default/list/edit-multiple.html.tmpl | 2 +- template/en/default/list/list.html.tmpl | 2 +- template/en/default/search/form.html.tmpl | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) (limited to 'template/en') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 41436f9b2..9a04b7147 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -205,7 +205,7 @@ - [% IF user.in_group(Param('timetrackinggroup')) && + [% IF user.is_timetracker && (comment.work_time > 0 || comment.work_time < 0) %]
Additional hours worked: diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 1d3160563..3572ec372 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -345,7 +345,7 @@ TUI_hide_default('expert_fields');   [%# Calculate the number of rows we can use for flags %] [% num_rows = 6 + (Param("useqacontact") ? 1 : 0) + - (user.in_group(Param('timetrackinggroup')) ? 3 : 0) + + (user.is_timetracker ? 3 : 0) + (Param("usebugaliases") ? 1 : 0) %] @@ -427,7 +427,7 @@ TUI_hide_default('expert_fields');   -[% IF user.in_group(Param('timetrackinggroup')) %] +[% IF user.is_timetracker %] Estimated Hours: diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 853ad7287..813e80cb2 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -115,7 +115,7 @@ return text; } -[% IF user.in_group(Param('timetrackinggroup')) %] +[% IF user.is_timetracker %] var fRemainingTime = [% bug.remaining_time %]; // holds the original value function adjustRemainingTime() { // subtracts time spent from remaining time @@ -213,7 +213,7 @@ [% PROCESS section_restrict_visibility %] - [% IF user.in_group(Param('timetrackinggroup')) %] + [% IF user.is_timetracker %]
[% PROCESS section_timetracking %] [% END %] diff --git a/template/en/default/bug/show-multiple.html.tmpl b/template/en/default/bug/show-multiple.html.tmpl index 903d9d622..b6507b964 100644 --- a/template/en/default/bug/show-multiple.html.tmpl +++ b/template/en/default/bug/show-multiple.html.tmpl @@ -195,7 +195,7 @@ [% PROCESS dependencies name = "blocked" %] [% END %] - [% IF user.in_group(Param("timetrackinggroup")) %] + [% IF user.is_timetracker %] Time tracking: diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl index f4ad0ceda..31e56d299 100644 --- a/template/en/default/bug/show.xml.tmpl +++ b/template/en/default/bug/show.xml.tmpl @@ -71,7 +71,7 @@ [% c.id FILTER xml %] [% c.author.email FILTER email FILTER xml %] [% c.creation_ts FILTER time("%Y-%m-%d %T %z") FILTER xml %] - [% IF user.in_group(Param('timetrackinggroup')) && (c.work_time - 0 != 0) %] + [% IF user.is_timetracker && (c.work_time - 0 != 0) %] [% PROCESS formattimeunit time_unit = c.work_time FILTER xml %] [% END %] [% c.body_full FILTER xml %] diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 05d534976..528d1bd68 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -140,7 +140,7 @@ [% PROCESS status_section %] - [% IF user.in_group(Param("timetrackinggroup")) %] + [% IF user.is_timetracker %] diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index a3e3a767a..6d7f80585 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -198,7 +198,7 @@ - [% IF user.in_group(Param('timetrackinggroup')) %] + [% IF user.is_timetracker %]
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index a237fd347..c52f5dcc5 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -305,7 +305,7 @@ function doOnSelectProduct(selectmode) { [% END %] [%# Deadline %] - [% IF user.in_group(Param("timetrackinggroup")) %] + [% IF user.is_timetracker %] : -- cgit v1.2.3-24-g4f1b