--- loncom/homework/response.pm 2002/02/15 22:16:04 1.60 +++ loncom/homework/response.pm 2002/05/03 19:32:57 1.62 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.60 2002/02/15 22:16:04 albertel Exp $ +# $Id: response.pm,v 1.62 2002/05/03 19:32:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -363,7 +363,7 @@ sub start_responseparam { if ($ENV{'request.state'} eq 'construct') { my $name = &Apache::lonxml::get_param('name',$parstack,$safeeval); my $default = &Apache::lonxml::get_param('default',$parstack,$safeeval); - $Apache::inputtags::params{$name}=$default; + if ($name) {$Apache::inputtags::params{$name}=$default;} } } return $result; @@ -451,6 +451,14 @@ sub answer_footer { return $result; } +sub showallfoils { + my $return=0; + if (defined($ENV{'form.showallfoils'}) && + $ENV{'request.state'} eq 'construct') { + $return=1; + } + return $return; +} 1; __END__