--- loncom/homework/inputtags.pm 2010/12/19 02:58:16 1.274 +++ loncom/homework/inputtags.pm 2010/12/31 00:58:10 1.276 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.274 2010/12/19 02:58:16 raeburn Exp $ +# $Id: inputtags.pm,v 1.276 2010/12/31 00:58:10 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -595,9 +595,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}; @@ -635,7 +635,7 @@ sub current_file_submissions { if ($header_shown) { $result .= &Apache::loncommon::end_data_table(). '
'. - &mt('Items checked for deletion will not be included amongst the files evaluated when your submission is graded.').''; + &mt('Exclude existing file(s) from grading by checking the "Delete?" checkbox(es) and clicking "Submit Answer"').''; } if (@bad_file_list) { my $bad_files = ''. @@ -1279,6 +1279,9 @@ sub setgradedata { ($Apache::lonhomework::type eq 'randomizetry')) { $Apache::lonhomework::results{"resource.$id.type"} = $Apache::lonhomework::type; } + if ($Apache::lonhomework::type eq 'randomizetry') { + $Apache::lonhomework::results{"resource.$id.rndseed"} = $env{'form.'.$id.'.rndseed'}; + } } sub find_which_previous {