Fixed not working SLA creation.

This commit is contained in:
Martin Edenhofer 2013-03-21 10:40:49 +01:00
parent f745980947
commit c73c5b0ca1

View file

@ -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']