--- loncom/homework/caparesponse/caparesponse.pm 2001/12/04 15:17:57 1.47 +++ loncom/homework/caparesponse/caparesponse.pm 2001/12/07 23:59:08 1.48 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # caparesponse definition # -# $Id: caparesponse.pm,v 1.47 2001/12/04 15:17:57 albertel Exp $ +# $Id: caparesponse.pm,v 1.48 2001/12/07 23:59:08 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -149,13 +149,7 @@ sub end_numericalresponse { $result = &Apache::run::run($expression,$safeeval); my ($awards) = split /:/ , $result; my ($ad) = &Apache::inputtags::finalizeawards(split /,/ , $awards); - if ( $previous{'used'} && ($previous{'award'} eq $ad) ) { - if ($previous{'last'}) { - push(@Apache::inputtags::previous,'PREVIOUSLY_LAST'); - } else { - push(@Apache::inputtags::previous,'PREVIOUSLY_USED'); - } - } + &Apache::response::handle_previous(\%previous,$ad); $Apache::lonhomework::results{"resource.$partid.$id.awarddetail"}=$ad; &Apache::lonxml::debug("$expression"); &Apache::lonxml::debug("\n
result:$result:$Apache::lonxml::curdepth
\n");