Ignore auto reply.

This commit is contained in:
Martin Edenhofer 2016-05-16 17:01:59 +02:00
parent 1c7dee3e28
commit 59b115669a

View file

@ -43,6 +43,13 @@ backend.perform
ticket = Ticket.find(@item[:object_id])
if @item[:article_id]
article = Ticket::Article.find(@item[:article_id])
# ignore notifications
sender = Ticket::Article::Sender.lookup(id: article.sender_id)
if sender && sender.name == 'System'
return if @item[:changes].empty?
article = nil
end
end
# ignore if no changes has been done