--- loncom/homework/optionresponse.pm 2018/02/28 13:20:50 1.201 +++ loncom/homework/optionresponse.pm 2025/01/26 17:49:32 1.202 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # option list style responses # -# $Id: optionresponse.pm,v 1.201 2018/02/28 13:20:50 raeburn Exp $ +# $Id: optionresponse.pm,v 1.202 2025/01/26 17:49:32 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -106,7 +106,7 @@ sub start_foilgroup { $Apache::optionresponse::conceptgroup=0; &Apache::response::pushrandomnumber(undef,$target); if ($target eq 'edit') { - my $optionlist="\n"; + my $optionlist="\n"; my $option; my @opt; my @raw_options = &Apache::lonxml::get_param('options', $parstack, $safeeval, 0, 0, 1); @@ -745,7 +745,7 @@ sub displayfoils { } } my $lastopt=$lastresponse{$name}; - my $optionlist="\n"; + my $optionlist="\n"; if($target eq 'tex' and $env{'form.pdfFormFields'} eq 'yes' && $Apache::inputtags::status[-1] eq 'CAN_ANSWER') { @@ -793,14 +793,20 @@ sub displayfoils { # lastopt is what the user submitted before # defopt is what the field is going to start out with: either previous choice or altopt # fieldname is this input field's name after HWVAL_ - $optionlist=''. + $optionlist=''; } $temp++; } else {