From d4c4f797d6066d852914a738e4f3f2e96f81a76b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 14 Jan 2017 01:31:00 +0100 Subject: [PATCH] Fixed save of task state. --- .../javascripts/app/controllers/agent_ticket_create.coffee | 5 ++++- .../javascripts/app/views/customer_ticket_create.jst.eco | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_create.coffee b/app/assets/javascripts/app/controllers/agent_ticket_create.coffee index f540416e9..89ae5f150 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_create.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_create.coffee @@ -159,7 +159,10 @@ class App.TicketCreate extends App.Controller buildScreen: (params) => if !params.ticket_id && !params.article_id - @render(options: { customer_id: params.customer_id }) + if !_.isEmpty(params.customer_id) + @render(options: { customer_id: params.customer_id }) + return + @render() return # fetch split ticket data diff --git a/app/assets/javascripts/app/views/customer_ticket_create.jst.eco b/app/assets/javascripts/app/views/customer_ticket_create.jst.eco index c698e335a..2ab383135 100644 --- a/app/assets/javascripts/app/views/customer_ticket_create.jst.eco +++ b/app/assets/javascripts/app/views/customer_ticket_create.jst.eco @@ -19,8 +19,8 @@
- <%- @T( 'Cancel & Go Back' ) %> - + <%- @T('Cancel & Go Back') %> +