From 29de1cf20aedbd8f0bc752a0f7293060dd4f2665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 29 Jan 2015 19:34:38 +0100 Subject: [PATCH] Small fix on imported comments from import --- app/coffee/modules/common/history.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/coffee/modules/common/history.coffee b/app/coffee/modules/common/history.coffee index 39540efa..08c34fda 100644 --- a/app/coffee/modules/common/history.coffee +++ b/app/coffee/modules/common/history.coffee @@ -191,9 +191,9 @@ HistoryDirective = ($log, $loading, $qqueue, $template, $confirm) -> return "Made #{size} changes" # TODO: i18n renderComment = (comment) -> - if (comment.delete_comment_date or comment.delete_comment_user) + if (comment.delete_comment_date or comment.delete_comment_user?.name) return templateDeletedComment({ - deleteCommentDate: moment(comment.delete_comment_date).format("DD MMM YYYY HH:mm") + deleteCommentDate: moment(comment.delete_comment_date).format("DD MMM YYYY HH:mm") if comment.delete_comment_date deleteCommentUser: comment.delete_comment_user.name deleteComment: comment.comment_html activityId: comment.id