lib/eco/api/usecases/default_cases/create_case.rb in eco-helpers-1.3.9 vs lib/eco/api/usecases/default_cases/create_case.rb in eco-helpers-1.3.10

- old
+ new

@@ -49,10 +49,10 @@ person.account&.send_invites = options[:send_invites] if options.key?(:send_invites) unless options.dig(:exclude, :policy_groups) && !create end_pg_ids = person.account.policy_group_ids || [] - unless entry.policy_group_ids? && !add_account && !def_id + if add_account && def_id && !entry.policy_group_ids? # on account creation, if missing policy_group_ids column in the input # use default_usergroup, if it's defined end_pg_ids = [def_id] end