diff --git a/app/models/application_model.rb b/app/models/application_model.rb index 3ee6f64bd..0a0c31e91 100644 --- a/app/models/application_model.rb +++ b/app/models/application_model.rb @@ -9,7 +9,11 @@ class ApplicationModel < ActiveRecord::Base # for import other objects, remove 'id' def self.attributes_protected_by_default - ['type'] + if Setting.get('import_mode') + ['type'] + else + ['id','type'] + end end def self.param_cleanup(params)