--- loncom/homework/inputtags.pm 2010/12/20 19:34:47 1.271.2.2 +++ loncom/homework/inputtags.pm 2010/12/31 19:10:16 1.271.2.4 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.271.2.2 2010/12/20 19:34:47 raeburn Exp $ +# $Id: inputtags.pm,v 1.271.2.4 2010/12/31 19:10:16 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -175,6 +175,7 @@ sub start_textfield { if ($target eq 'web') { $Apache::lonxml::evaluate--; my $partid=$Apache::inputtags::part; + my ($oldresponse,$newvariation); if ((($Apache::lonhomework::history{"resource.$partid.type"} eq 'randomizetry') || ($Apache::lonhomework::type eq 'randomizetry')) && ($Apache::inputtags::status[-1] eq 'CAN_ANSWER')) { @@ -595,9 +596,9 @@ sub current_file_submissions { } } } + my $num = 0; foreach my $name (sort(keys(%okfiles))) { if (ref($okfiles{$name}) eq 'ARRAY') { - my $num = 0; foreach my $url (@{$okfiles{$name}}) { if (ref($rows{$url}) eq 'HASH') { my $link = $rows{$url}{link}; @@ -623,7 +624,7 @@ sub current_file_submissions { } $result .= '