try to deal with inconsistent data, as in https://github.com/mikitex70/redmine_drawio/issues/59
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user