--- loncom/homework/response.pm 2004/03/31 05:23:59 1.97 +++ loncom/homework/response.pm 2004/05/07 17:20:19 1.98 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.97 2004/03/31 05:23:59 albertel Exp $ +# $Id: response.pm,v 1.98 2004/05/07 17:20:19 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -199,7 +199,7 @@ sub check_for_previous { my %previous; $previous{'used'} = 0; foreach my $key (sort(keys(%Apache::lonhomework::history))) { - if ($key =~ /resource\.$partid\.$id\.submission/) { + if ($key =~ /resource\.$partid\.$id\.submission$/) { &Apache::lonxml::debug("Trying $key"); my $pastresponse=$Apache::lonhomework::history{$key}; if ($pastresponse eq $curresponse) {