Touch article on merge to push new version to client (to show new url's for attachments).

This commit is contained in:
Martin Edenhofer 2015-03-09 02:31:09 +01:00
parent c128c2f742
commit 8def4fd80e

View file

@ -127,6 +127,11 @@ returns
def merge_to(data)
# update articles
Ticket::Article.where( :ticket_id => self.id ).each {|article|
article.touch
}
# quiet update of reassign of articles
Ticket::Article.where( :ticket_id => self.id ).update_all( ['ticket_id = ?', data[:ticket_id] ] )
# touch new ticket (to broadcast change)