diff --git a/app/models/ticket/article.rb b/app/models/ticket/article.rb index cac6521b3..e9dc0dbdc 100644 --- a/app/models/ticket/article.rb +++ b/app/models/ticket/article.rb @@ -270,8 +270,8 @@ returns } attributes['attachments'].push item } - if articles['body'] && articles['content_type'] =~ %r{text/html}i - articles['body'] = HtmlSanitizer.dynamic_image_size(articles['body']) + if attributes['body'] && attributes['content_type'] =~ %r{text/html}i + attributes['body'] = HtmlSanitizer.dynamic_image_size(attributes['body']) end Ticket::Article.insert_urls(attributes) end