summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-08-21 12:21:22 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-08-21 12:21:22 +0200
commit2b7728594a059c0fac1edf63799e62cfc0a82c7a (patch)
tree33c6957ab96f6daa540eb9fcb92af168e76e1a9a /template/en
parenta57afb7712b9499270db17fdb5e9533d313f4515 (diff)
downloadbugzilla-2b7728594a059c0fac1edf63799e62cfc0a82c7a.tar.gz
bugzilla-2b7728594a059c0fac1edf63799e62cfc0a82c7a.tar.xz
Bug 584115: Some comments incorrectly disappear for users not in the timetracking group
r/a=mkanat
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/bug/comments.html.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index af6cc2191..e44e4e7b9 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -89,7 +89,8 @@
[% BLOCK a_comment %]
[% RETURN IF comment.is_private AND ! user.is_insider %]
- [% RETURN IF comment.body == '' AND comment.work_time != 0 AND !user.is_timetracker %]
+ [% comment_text = comment.body_full({ wrap => 1 }) %]
+ [% RETURN IF comment_text == '' AND (comment.work_time - 0) != 0 AND !user.is_timetracker %]
<div id="c[% count %]" class="bz_comment[% " bz_private" IF comment.is_private %]
[% " bz_comment_hilite" IF marks.$count %]
@@ -162,7 +163,7 @@
#%]
<pre class="bz_comment_text"
[% ' id="comment_text_' _ count _ '"' IF mode == "edit" %]>
- [%- comment.body_full({ wrap => 1 }) FILTER quoteUrls(bug, comment) -%]
+ [%- comment_text FILTER quoteUrls(bug, comment) -%]
</pre>
</div>
[% END %]