Fixed check_attributes_protected method.
This commit is contained in:
parent
11d0701298
commit
4eed0c0bec
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class ApplicationModel < ActiveRecord::Base
|
||||||
@@import_class_list = ['Ticket', 'Ticket::Article', 'History', 'Ticket::State', 'Ticket::Priority', 'Group', 'User' ]
|
@@import_class_list = ['Ticket', 'Ticket::Article', 'History', 'Ticket::State', 'Ticket::Priority', 'Group', 'User' ]
|
||||||
|
|
||||||
def check_attributes_protected
|
def check_attributes_protected
|
||||||
if Setting.get('import_mode') && @@import_class_list.include?( self.name.to_s )
|
if Setting.get('import_mode') && @@import_class_list.include?( self.class.to_s )
|
||||||
# do noting, use id as it is
|
# do noting, use id as it is
|
||||||
else
|
else
|
||||||
self[:id] = nil
|
self[:id] = nil
|
||||||
|
|
Loading…
Reference in a new issue