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

raeburn raeburn at source.lon-capa.org
Fri Aug 17 19:19:03 EDT 2018


raeburn		Fri Aug 17 23:19:03 2018 EDT

  Modified files:              
    /loncom/interface	lonrequestcourse.pm 
  Log:
  - In request form when choice was to clone a textbook course or a template 
    course, any date parameters will be deleted in the new course. 
  
  
Index: loncom/interface/lonrequestcourse.pm
diff -u loncom/interface/lonrequestcourse.pm:1.103 loncom/interface/lonrequestcourse.pm:1.104
--- loncom/interface/lonrequestcourse.pm:1.103	Fri Mar 23 01:01:21 2018
+++ loncom/interface/lonrequestcourse.pm	Fri Aug 17 23:19:03 2018
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Request a course
 #
-# $Id: lonrequestcourse.pm,v 1.103 2018/03/23 01:01:21 raeburn Exp $
+# $Id: lonrequestcourse.pm,v 1.104 2018/08/17 23:19:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5098,6 +5098,9 @@
             } else {
                 $details->{dateshift} = '';
             }
+        } elsif (($reqtype eq 'textbook') || ($reqtype eq 'template')) {
+            $details->{datemode} = 'delete';
+            $details->{dateshift} = '';
         }
         if ($details->{dateshift} ne '') {
             $details->{dateshift} =~ s/[^\d\.]+//g;




More information about the LON-CAPA-cvs mailing list