Broadcast change of new ticket (open tasks will be refreshed in web app).

This commit is contained in:
Martin Edenhofer 2015-01-31 14:33:05 +01:00
parent 2774204aba
commit 0f8c093bec

View file

@ -128,6 +128,9 @@ returns
# update articles # update articles
Ticket::Article.where( :ticket_id => self.id ).update_all( ['ticket_id = ?', data[:ticket_id] ] ) Ticket::Article.where( :ticket_id => self.id ).update_all( ['ticket_id = ?', data[:ticket_id] ] )
# touch new ticket (to broadcast change)
Ticket.find( data[:ticket_id] ).touch
# update history # update history
# create new merge article # create new merge article