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

raeburn raeburn at source.lon-capa.org
Sun Apr 3 20:56:05 EDT 2016


raeburn		Mon Apr  4 00:56:05 2016 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - Eliminate javascript error when using "Select Community" link when DC is
    cloning when using "Create a single community".
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1237 loncom/interface/loncommon.pm:1.1238
--- loncom/interface/loncommon.pm:1.1237	Sat Apr  2 04:30:20 2016
+++ loncom/interface/loncommon.pm	Mon Apr  4 00:56:04 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1237 2016/04/02 04:30:20 raeburn Exp $
+# $Id: loncommon.pm,v 1.1238 2016/04/04 00:56:04 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -590,7 +590,10 @@
         if (formname == 'ccrs') {
             var ownername = document.forms[formid].ccuname.value;
             var ownerdom =  document.forms[formid].ccdomain.options[document.forms[formid].ccdomain.selectedIndex].value;
-            url += '&cloner='+ownername+':'+ownerdom+'&crscode='+document.forms[formid].crscode.value;
+            url += '&cloner='+ownername+':'+ownerdom;
+            if (type == 'Course') {
+                url += '&crscode='+document.forms[formid].crscode.value;
+            }
         }
         if (formname == 'requestcrs') {
             url += '&crsdom=$domainfilter&crscode=$instcode';




More information about the LON-CAPA-cvs mailing list