Ignore auto reply.
This commit is contained in:
parent
1c7dee3e28
commit
59b115669a
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue