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

raeburn raeburn at source.lon-capa.org
Fri Dec 29 10:11:18 EST 2017


raeburn		Fri Dec 29 15:11:18 2017 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - Do not prepend parameter_ to parameters to be deleted in a map when 
    using apply_fixups(), as the parameter names already contain it.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.646 loncom/interface/londocs.pm:1.647
--- loncom/interface/londocs.pm:1.646	Fri Dec 29 15:04:11 2017
+++ loncom/interface/londocs.pm	Fri Dec 29 15:11:18 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.646 2017/12/29 15:04:11 raeburn Exp $
+# $Id: londocs.pm,v 1.647 2017/12/29 15:11:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2806,7 +2806,7 @@
                         splice(@LONCAPA::map::order,$i,1);
                         if (ref($currparam{$idx}) eq 'ARRAY') {
                             foreach my $name (@{$currparam{$idx}}) {
-                                &LONCAPA::map::delparameter($idx,'parameter_'.$name);
+                                &LONCAPA::map::delparameter($idx,$name);
                             }
                         }
                         next;
@@ -2848,7 +2848,7 @@
             foreach my $idx (keys(%remparam)) {
                 if (ref($remparam{$idx}) eq 'ARRAY') {
                     foreach my $name (@{$remparam{$idx}}) {   
-                        &LONCAPA::map::delparameter($idx,'parameter_'.$name);
+                        &LONCAPA::map::delparameter($idx,$name);
                     }
                 }
             }




More information about the LON-CAPA-cvs mailing list