--- loncom/interface/lonwhatsnew.pm 2005/07/14 21:30:25 1.24 +++ loncom/interface/lonwhatsnew.pm 2005/07/15 05:30:06 1.25 @@ -1,5 +1,5 @@ # -# $Id: lonwhatsnew.pm,v 1.24 2005/07/14 21:30:25 albertel Exp $ +# $Id: lonwhatsnew.pm,v 1.25 2005/07/15 05:30:06 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -564,11 +564,12 @@ sub getitems { if ($resource->is_problem()) { my $ctr = 0; my ($map,$ind,$url)=&Apache::lonnet::decode_symb($symb); - my ($partlist,$handgrade,$responseType) = - &Apache::grades::response_type($url,$symb); + my $partlist=$resource->parts(); my $handgradeable; - foreach my $value (values(%{$handgrade})) { - if ($value eq 'yes') { $handgradeable=1; last; } + foreach my $part (@$partlist) { + if ($resource->handgrade($part) eq 'yes') { + $handgradeable=1; last; + } } if ($handgradeable) { foreach my $student (keys(%$classlist)) {