[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm
www
lon-capa-cvs@mail.lon-capa.org
Sat, 31 Jan 2004 02:07:53 -0000
www Fri Jan 30 21:07:53 2004 EDT
Modified files:
/loncom/interface loncreatecourse.pm
Log:
Bug #2630: do not paste over first resource of a cloned course.
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.47 loncom/interface/loncreatecourse.pm:1.48
--- loncom/interface/loncreatecourse.pm:1.47 Wed Dec 31 21:16:29 2003
+++ loncom/interface/loncreatecourse.pm Fri Jan 30 21:07:53 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.47 2004/01/01 02:16:29 www Exp $
+# $Id: loncreatecourse.pm,v 1.48 2004/01/31 02:07:53 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -25,20 +25,8 @@
#
# http://www.lon-capa.org/
#
-# (My Desk
-#
-# (Internal Server Error Handler
-#
-# (Login Screen
-# 5/21/99,5/22,5/25,5/26,5/31,6/2,6/10,7/12,7/14,
-# 1/14/00,5/29,5/30,6/1,6/29,7/1,11/9 Gerd Kortemeyer)
-#
-# 3/1/1 Gerd Kortemeyer)
-#
-# 3/1 Gerd Kortemeyer)
-#
-# 2/14,2/16,2/17,7/6 Gerd Kortemeyer
-#
+###
+
package Apache::loncreatecourse;
use strict;
@@ -700,7 +688,8 @@
#
# Set first page
#
- unless (($ENV{'form.nonstandard'}) || ($ENV{'form.firstres'} eq 'blank')) {
+ unless (($ENV{'form.nonstandard'}) || ($ENV{'form.firstres'} eq 'blank')
+ || ($cloneid)) {
$r->print(&mt('Setting first resource').': ');
my ($errtext,$fatal)=
&Apache::londocs::mapread($crsunum,$crsudom,'default.sequence');