From 5fbb730fc583d3fb28ff32d36a66fa9543ee7954 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Sat, 21 Aug 2010 12:22:49 +0200 Subject: [PATCH] Bug 584115: Some comments incorrectly disappear for users not in the timetracking group r/a=mkanat --- template/en/default/bug/comments.html.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index af6cc21911..e44e4e7b95 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 %]
- [%- comment.body_full({ wrap => 1 }) FILTER quoteUrls(bug, comment) -%] + [%- comment_text FILTER quoteUrls(bug, comment) -%]
[% END %] -- 2.47.2