]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 584115: Some comments incorrectly disappear for users not in the timetracking...
authorFrédéric Buclin <LpSolit@gmail.com>
Sat, 21 Aug 2010 10:22:49 +0000 (12:22 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 21 Aug 2010 10:22:49 +0000 (12:22 +0200)
r/a=mkanat

template/en/default/bug/comments.html.tmpl

index af6cc2191117d83c8ae23b4cba7bce3d6f9400fd..e44e4e7b95f8af7acb17bc60fa35f51acded30d6 100644 (file)
@@ -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 %]
   #%]
 <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 %]