--- loncom/homework/grades.pm 2011/09/17 19:01:20 1.650 +++ loncom/homework/grades.pm 2011/09/22 23:03:09 1.651 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.650 2011/09/17 19:01:20 raeburn Exp $ +# $Id: grades.pm,v 1.651 2011/09/22 23:03:09 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2864,7 +2864,7 @@ sub handback_files { foreach my $part_response_id (@part_response_id) { my ($part_id,$resp_id) = @{ $part_response_id }; my $part_resp = join('_',@{ $part_response_id }); - if (($env{'form.'.$newflg.'_'.$part_resp.'_returndoc1'}) && ($new_part == $part_id)) { + if (($env{'form.'.$newflg.'_'.$part_resp.'_returndoc1'}) && ($new_part eq $part_id)) { # if multiple files are uploaded names will be 'returndoc2','returndoc3' my $file_counter = 1; my $file_msg;