--- loncom/enrollment/Enrollment.pm 2017/06/18 22:29:01 1.50 +++ loncom/enrollment/Enrollment.pm 2017/09/18 14:21:45 1.51 @@ -1,5 +1,5 @@ # Automated Enrollment manager -# $Id: Enrollment.pm,v 1.50 2017/06/18 22:29:01 raeburn Exp $ +# $Id: Enrollment.pm,v 1.51 2017/09/18 14:21:45 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -329,7 +329,7 @@ sub update_LC { } } # Check for institutional section change - if ($$currlist{$uname}[$instidx] ne $instsec) { + if (($$currlist{$uname}[$instidx] ne $instsec) && (!$added)) { my $modify_instsec_result = &Apache::lonnet::modify_student_enrollment($dom,$uname,undef,undef,undef,undef,undef,$stuinfo[ $place{groupID} ],$enddate,$startdate,'auto','',$cid,'',$context,$credits,$instsec); if ($modify_instsec_result =~ /^ok/) {