--- loncom/homework/grades.pm 2012/10/02 18:03:07 1.675 +++ loncom/homework/grades.pm 2014/02/04 18:53:44 1.718 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.675 2012/10/02 18:03:07 bisitz Exp $ +# $Id: grades.pm,v 1.718 2014/02/04 18:53:44 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -437,7 +437,8 @@ sub cleanRecord { $result.=''; return $result; } - } elsif ( $response =~ m/(?:numerical|formula)/) { + } elsif ( $response =~ m/(?:numerical|formula|custom)/) { + # Respect multiple input fields, see Bug #5409 $answer = &Apache::loncommon::format_previous_attempt_value('submission', $answer); @@ -736,7 +737,7 @@ sub most_similar { sub initialverifyreceipt { my ($request,$symb) = @_; &commonJSfunctions($request); - return '