diff options
author | Kent Rogers <kar@cray.com> | 2010-05-12 23:29:58 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-05-12 23:29:58 -0700 |
commit | 34e9970696a7dd34bc21cea973d2ad3696440792 (patch) | |
tree | 93dac67b52960399e537ad5819923cb908b4a142 /template/en/default/bug | |
parent | 20ed8a92744b90c7b6b5eab19d0ed7e846100a5e (diff) | |
download | bugs-34e9970696a7dd34bc21cea973d2ad3696440792.tar bugs-34e9970696a7dd34bc21cea973d2ad3696440792.tar.gz bugs-34e9970696a7dd34bc21cea973d2ad3696440792.tar.bz2 bugs-34e9970696a7dd34bc21cea973d2ad3696440792.tar.xz bugs-34e9970696a7dd34bc21cea973d2ad3696440792.zip |
Bug 271913: Do not force the user to comment when adding Hours Worked
r=mkanat, a=mkanat
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/comments.html.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
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')) %] <div id="c[% count %]" class="bz_comment[% " bz_private" IF comment.is_private %] [% " bz_comment_hilite" IF marks.$count %] |