From 57271ffa721de569c1e1e4a30ca3627fd24d5a5b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 6 Nov 2014 07:54:43 +0100 Subject: [PATCH] Fixed resent of articles. --- .../javascripts/app/controllers/ticket_zoom.js.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee index a8e3c9d6a..2f7211560 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee @@ -241,6 +241,10 @@ class TicketTitle extends App.Controller # update title @ticket.title = title + + # reset article - should not be resubmited on next ticket update + ticket.article = undefined + @ticket.save() # update taskbar with new meta data @@ -580,6 +584,9 @@ class Edit extends App.Controller ticket.save( done: (r) => + # reset article - should not be resubmited on next ticket update + ticket.article = undefined + # reset form after save App.TaskManager.update( @task_key, { 'state': {} })