lib/eco/api/common/people/person_entry.rb in eco-helpers-2.7.23 vs lib/eco/api/common/people/person_entry.rb in eco-helpers-2.7.24
- old
+ new
@@ -209,10 +209,11 @@
# Meaning that if an core property is not present in the entry, this will not be set on the target person.
# 2. if there's an incorrect email exception, it blanks the email and logs a warning message
# @param person [Ecoportal::API::V1::Person] the person we want to set the core values to.
# @param exclude [String, Array<String>] core attributes that should not be set/changed to the person.
def set_core(person, exclude: nil)
- scoped_attrs = @emap.core_attrs(@final_entry) - into_a(exclude)
+ scoped_attrs = @emap.core_attrs(@final_entry) - into_a(exclude)
+ scoped_attrs -= ['id']
@final_entry.slice(*scoped_attrs).each do |attr, value|
set_part(person, attr, value)
rescue StandardError => e
raise unless attr == "email"
logger.error("#{e} - setting blank email instead.")