[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 20 Dec 2005 20:00:42 -0000


albertel		Tue Dec 20 15:00:42 2005 EDT

  Modified files:              
    /loncom/homework	default_homework.lcpm 
  Log:
  - need to wlak the response array.
  
  
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.105 loncom/homework/default_homework.lcpm:1.106
--- loncom/homework/default_homework.lcpm:1.105	Wed Nov 16 18:17:39 2005
+++ loncom/homework/default_homework.lcpm	Tue Dec 20 15:00:42 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
 #
-# $Id: default_homework.lcpm,v 1.105 2005/11/16 23:17:39 albertel Exp $
+# $Id: default_homework.lcpm,v 1.106 2005/12/20 20:00:42 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -210,7 +210,7 @@
     $result.="Final final response :$responselist['-1']:$unit:\n";
     $unit=~s/\s//;
 
-    my ($awards, @msgs);
+    my ($awards, @msgs, $i);
     foreach my $thisanswer (@LONCAPA::CAPAresponse_answer) {
 	my ($msg,$aresult);
 	$result.="trying answer :$thisanswer:\n";
@@ -231,6 +231,7 @@
 	$awards.="$temp,";
 	$result.=$aresult;
 	push(@msgs,$msg);
+	$i++;
     }
     chop($awards);
     return ("$awards:\n$result",@msgs);