Touch article on merge to push new version to client (to show new url's for attachments).
This commit is contained in:
parent
c128c2f742
commit
8def4fd80e
1 changed files with 5 additions and 0 deletions
|
@ -127,6 +127,11 @@ returns
|
||||||
def merge_to(data)
|
def merge_to(data)
|
||||||
|
|
||||||
# update articles
|
# 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] ] )
|
Ticket::Article.where( :ticket_id => self.id ).update_all( ['ticket_id = ?', data[:ticket_id] ] )
|
||||||
|
|
||||||
# touch new ticket (to broadcast change)
|
# touch new ticket (to broadcast change)
|
||||||
|
|
Loading…
Reference in a new issue