lib/eco/api/common/people/person_entry.rb in eco-helpers-1.0.10 vs lib/eco/api/common/people/person_entry.rb in eco-helpers-1.0.11
- old
+ new
@@ -232,10 +232,10 @@
person.send("#{attr}=", value)
end
def _set_to_account(person, attr, value)
return if !person.account
- multiple = ["policy_group_ids"].include?(attr)
+ multiple = ["policy_group_ids", "login_provider_ids"].include?(attr)
if multiple
value = @person_parser.parse(:multiple, value)
# preserve previous order
current = into_a(person.account.send(attr))
value = (current & value) + (value - current)