[LON-CAPA-cvs] cvs: loncom /interface londropadd.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 23 Jun 2003 14:38:54 -0000


matthew		Mon Jun 23 10:38:54 2003 EDT

  Modified files:              
    /loncom/interface	londropadd.pm 
  Log:
  Automatic refreshing of the course environment after setting the enrollment
  dates as default for the course.
  
  
Index: loncom/interface/londropadd.pm
diff -u loncom/interface/londropadd.pm:1.68 loncom/interface/londropadd.pm:1.69
--- loncom/interface/londropadd.pm:1.68	Fri Jun 20 16:57:44 2003
+++ loncom/interface/londropadd.pm	Mon Jun 23 10:38:53 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to drop and add students in courses 
 #
-# $Id: londropadd.pm,v 1.68 2003/06/20 20:57:44 matthew Exp $
+# $Id: londropadd.pm,v 1.69 2003/06/23 14:38:53 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -660,6 +660,9 @@
              'default_enrollment_end_date'  =>$enddate},$dom,$crs);
     if ($put_result eq 'ok') {
         $result .= "Set default start and end dates for course<br />";
+        #
+        # Refresh the course environment
+        &Apache::lonnet::coursedescription($ENV{'request.course.id'});
     } else {
         $result .= "Unable to set default dates for course:".$put_result.
             '<br />';