--- loncom/homework/radiobuttonresponse.pm 2001/11/09 20:20:45 1.28 +++ loncom/homework/radiobuttonresponse.pm 2001/11/12 20:36:41 1.29 @@ -67,10 +67,10 @@ sub storesurvey { sub end_foilgroup { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; - + my $result; if ($target eq 'grade' || $target eq 'web' || $target eq 'answer') { - my $style = &Apache::lonxml::get_param('style',$parstack,$safeeval,'-2'); + my $style = $Apache::lonhomework::type; if ( $style eq 'survey' ) { if ($target eq 'web') { $result=&displayallfoils();