From 34e9970696a7dd34bc21cea973d2ad3696440792 Mon Sep 17 00:00:00 2001 From: Kent Rogers Date: Wed, 12 May 2010 23:29:58 -0700 Subject: Bug 271913: Do not force the user to comment when adding Hours Worked r=mkanat, a=mkanat --- template/en/default/bug/comments.html.tmpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'template/en/default/bug/comments.html.tmpl') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 93b954e87..3012bab5e 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -94,6 +94,7 @@ [% DEFAULT start_at = 0 mode = "show" %] +[% timetracking_only = (comment_body == '' && comment.work_time != 0) %] [% sort_order = user.settings.comment_sort_order.value %] [%# NOTE: (start_at > 0) means we came here from a midair collision, @@ -157,6 +158,7 @@ [% BLOCK a_comment %] [% RETURN IF comment.is_private AND ! user.is_insider %] + [% RETURN IF timetracking_only AND !user.in_group(Param('timetrackinggroup')) %]