[LON-CAPA-cvs] cvs: loncom /homework lonsimpleproblemedit.pm

truskell truskell@source.lon-capa.org
Fri, 25 Sep 2009 17:57:06 -0000


truskell		Fri Sep 25 17:57:06 2009 EDT

  Modified files:              
    /loncom/homework	lonsimpleproblemedit.pm 
  Log:
  
  
  The weight of all hidden parts for Simple Problems is now set to zero.
  
  
Index: loncom/homework/lonsimpleproblemedit.pm
diff -u loncom/homework/lonsimpleproblemedit.pm:1.26 loncom/homework/lonsimpleproblemedit.pm:1.27
--- loncom/homework/lonsimpleproblemedit.pm:1.26	Thu Sep 24 00:50:03 2009
+++ loncom/homework/lonsimpleproblemedit.pm	Fri Sep 25 17:57:06 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Simple Problem Parameter Setting "Editor"
 #
-# $Id: lonsimpleproblemedit.pm,v 1.26 2009/09/24 00:50:03 truskell Exp $
+# $Id: lonsimpleproblemedit.pm,v 1.27 2009/09/25 17:57:06 truskell Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -40,7 +40,6 @@
 
 my %qparms;
 my $prefix;
-my $weightprefix;
 my $qtype;
 
 sub evaloptionhash {
@@ -193,7 +192,7 @@
 # ------------------------------------------------ Prefix for everything stored
     $prefix=$env{'request.course.id'}.'.'.$symb.'.0.';
 #------------------------------------------------- Prefix for storing weight of Problem Parts
-    $weightprefix=$env{'request.course.id'}.'.'.$symb.'.';
+    my $weightprefix=$env{'request.course.id'}.'.'.$symb.'.';
     
 # ---------------------------------------------------------- Anything to store?