--- loncom/homework/grades.pm 2006/10/23 22:32:09 1.381 +++ loncom/homework/grades.pm 2006/10/24 01:03:54 1.382 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.381 2006/10/23 22:32:09 albertel Exp $ +# $Id: grades.pm,v 1.382 2006/10/24 01:03:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1570,12 +1570,14 @@ sub handback_box { } sub show_problem { - my ($request,$symb,$uname,$udom,$removeform,$viewon,$mode) = @_; + my ($request,$symb,$uname,$udom,$removeform,$viewon,$mode,$form) = @_; my $rendered; + my %form = ((ref($form) eq 'HASH')? %{$form} : ()); &Apache::lonxml::remember_problem_counter(); if ($mode eq 'both' or $mode eq 'text') { $rendered=&Apache::loncommon::get_student_view($symb,$uname,$udom, - $env{'request.course.id'}); + $env{'request.course.id'}, + undef,\%form); } if ($removeform) { $rendered=~s|