From f9c20e582ece69cd10b171ef02b2446413a778b9 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 17 May 2016 16:28:08 +0200 Subject: [PATCH] Removed no acceptedInstances warnings. --- .../javascripts/app/controllers/ticket_zoom/sidebar.coffee | 5 ++--- app/assets/javascripts/application.js | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/sidebar.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/sidebar.coffee index 990f65d28..d30662b20 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/sidebar.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/sidebar.coffee @@ -18,11 +18,10 @@ class App.TicketZoomSidebar extends App.Controller el.find('.edit').html('') defaults = ticket.attributes() + delete defaults.article # ignore article infos task_state = @taskGet('ticket') modelDiff = App.Utils.formDiff(task_state, defaults) - #if @isRole('Customer') - # delete defaults['state_id'] - # delete defaults['state'] + if !_.isEmpty(task_state) defaults = _.extend(defaults, task_state) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 49e5c8bb3..242053b40 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -119,6 +119,7 @@ function clone(item, full) { // check if item is accepted to get cloned if (itemType && !_.contains(acceptedInstances, itemType)) { console.log('no acceptedInstances', itemType, item) + console.trace() return }