From c73c5b0ca1ded7a02a87eb26d820d3d72bd34ba8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 21 Mar 2013 10:40:49 +0100 Subject: [PATCH] Fixed not working SLA creation. --- app/models/application_model.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/application_model.rb b/app/models/application_model.rb index a3806a03b..e72b4c882 100644 --- a/app/models/application_model.rb +++ b/app/models/application_model.rb @@ -10,9 +10,11 @@ class ApplicationModel < ActiveRecord::Base after_update :cache_delete after_destroy :cache_delete + @@import_class_list = ['Ticket', 'Ticket::Article', 'History', 'Ticket::State', 'Ticket::Priority', 'Group', 'User' ] + # for import other objects, remove 'id' def self.attributes_protected_by_default - if Setting.get('import_mode') + if Setting.get('import_mode') && @@import_class_list.include?( self.name.to_s ) ['type'] else ['id','type']