[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lon-capa-cvs
Subject:    [LON-CAPA-cvs] cvs: loncom /enrollment Enrollment.pm
From:       raeburn via LON-CAPA-cvs <lon-capa-cvs () mail ! lon-capa ! org>
Date:       2021-09-08 12:13:13
Message-ID: cvsraeburn1631103193 () cvsserver
[Download RAW message or body]

raeburn		Wed Sep  8 12:13:13 2021 EDT

  Modified files:              
    /loncom/enrollment	Enrollment.pm 
  Log:
  - Checking for institutional section change only applies to user with an 
    enrollment type of "auto".
  
  
Index: loncom/enrollment/Enrollment.pm
diff -u loncom/enrollment/Enrollment.pm:1.54 loncom/enrollment/Enrollment.pm:1.55
--- loncom/enrollment/Enrollment.pm:1.54	Sun Aug 25 02:43:09 2019
+++ loncom/enrollment/Enrollment.pm	Wed Sep  8 12:13:13 2021
@@ -1,5 +1,5 @@
 # Automated Enrollment manager
-# $Id: Enrollment.pm,v 1.54 2019/08/25 02:43:09 raeburn Exp $
+# $Id: Enrollment.pm,v 1.55 2021/09/08 12:13:13 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -331,7 +331,7 @@
                     }
                 }
 # Check for institutional section change
-                if (($$currlist{$uname}[$instidx] ne $instsec) && (!$added)) {
+                if (($$currlist{$uname}[$instidx] ne $instsec) && (!$added) && \
($$currlist{$uname}[$type] eq "auto")) {  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/) {


_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic