From 4ad897ce9b710a4579ef82024665effc9b977853 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 20 Feb 2013 09:50:43 +0100 Subject: [PATCH] Only remote id on import mode. --- app/models/application_model.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)