lib/eco/api/usecases/default_cases/update_case.rb in eco-helpers-1.0.8 vs lib/eco/api/usecases/default_cases/update_case.rb in eco-helpers-1.0.9
- old
+ new
@@ -17,10 +17,10 @@
unless options.dig(:exclude, :core)
ini_tags = person.filter_tags || []
core_attrs = ["name", "external_id", "email", "filter_tags"]
- core_excluded = core_attrs.map(&:to_sym).select {|attr| options.dig(:exclude, attr)}
+ core_excluded = core_attrs.map.select {|attr| options.dig(:exclude, attr.to_sym)}
core_excluded.push("supervisor_id")
entry.set_core(person, exclude: core_excluded)
if session.tagtree && !options.dig(:exclude, :filter_tags)