--- loncom/interface/lonhelper.pm 2006/07/03 11:12:24 1.156 +++ loncom/interface/lonhelper.pm 2006/07/17 16:26:09 1.157 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.156 2006/07/03 11:12:24 foxr Exp $ +# $Id: lonhelper.pm,v 1.157 2006/07/17 16:26:09 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -486,7 +486,7 @@ sub declareVar { $self->{VARS}->{$var} = ''; } - my $envname = 'form.' . $var . '.forminput'; + my $envname = 'form.' . $var . '_forminput'; if (defined($env{$envname})) { if (ref($env{$envname})) { $self->{VARS}->{$var} = join('|||', @{$env{$envname}}); @@ -1280,7 +1280,7 @@ sub render { function checkall(value, checkName) { for (i=0; i{CHOICES}}) { my $id = &new_id(); $result .= "\n \n"; - $result .= ""; if ($choice->[4]) { $result .=''; } $result .= "\n"; @@ -1387,7 +1387,7 @@ BUTTONS # given, switch to it sub postprocess { my $self = shift; - my $chosenValue = $env{'form.' . $self->{'variable'} . '.forminput'}; + my $chosenValue = $env{'form.' . $self->{'variable'} . '_forminput'}; if (!defined($chosenValue) && !$self->{'allowempty'}) { $self->{ERROR_MSG} = @@ -1411,7 +1411,7 @@ sub postprocess { } if ($choice->[4]) { my $varname = $choice->[4]; - $helper->{'VARS'}->{$varname} = $env{'form.'."$varname.forminput"}; + $helper->{'VARS'}->{$varname} = $env{'form.'."${varname}_forminput"}; } } return 1; @@ -1520,7 +1520,7 @@ sub render { $checkedChoices{$self->{CHOICES}->[0]->[1]} = 1; } - $result .= "\n"; foreach my $choice (@{$self->{CHOICES}}) { $result .= "