--- loncom/homework/default_homework.lcpm 2005/11/16 23:17:39 1.105 +++ loncom/homework/default_homework.lcpm 2005/12/20 20:00:42 1.106 @@ -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 @@ sub caparesponse_check_list { $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 @@ sub caparesponse_check_list { $awards.="$temp,"; $result.=$aresult; push(@msgs,$msg); + $i++; } chop($awards); return ("$awards:\n$result",@msgs);