save the selected learner groups as-is.
save the selected learner groups as-is.

don't attempt to create a sparse tree here, based on user selection.
it only leads to confusing/unexpected behaviour.
accept what the user selected and be done with it.

ilios/common,ilios/common