--- loncom/homework/caparesponse/caparesponse.pm 2012/02/01 19:26:05 1.248.2.1 +++ loncom/homework/caparesponse/caparesponse.pm 2012/02/01 17:35:24 1.250 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # caparesponse definition # -# $Id: caparesponse.pm,v 1.248.2.1 2012/02/01 19:26:05 raeburn Exp $ +# $Id: caparesponse.pm,v 1.250 2012/02/01 17:35:24 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1389,8 +1389,8 @@ sub end_stringresponse { } if ($target eq 'grade' || $target eq 'web' || $target eq 'answer' || $target eq 'tex' || $target eq 'analyze') { - &Apache::lonxml::increment_counter(&Apache::response::repetition(), - "$part.$id"); + my $repetition = &Apache::response::repetition(); + &Apache::lonxml::increment_counter($repetition,"$part.$id"); if ($target eq 'analyze') { &Apache::lonhomework::set_bubble_lines(); }