This commit is contained in:
Alexander Meindl
2018-09-09 15:30:50 +02:00
parent c1b8c033d4
commit 94212d2f3d

View File

@@ -35,7 +35,7 @@ module RedmineMessenger
return unless channels.present? && url
attachment = nil
unless content.comments.empty?
if !content.nil? && content.comments.present?
attachment = {}
attachment[:text] = Messenger.markup_format(content.comments.to_s)
end