--- loncom/interface/lonnavmaps.pm 2010/08/12 16:03:24 1.450 +++ loncom/interface/lonnavmaps.pm 2010/12/02 15:40:02 1.452 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.450 2010/08/12 16:03:24 raeburn Exp $ +# $Id: lonnavmaps.pm,v 1.452 2010/12/02 15:40:02 bisitz Exp $ # # Copyright Michigan State University Board of Trustees @@ -1090,9 +1090,10 @@ sub render_long_status { } } - if ($resource->kind() eq "res" && + if (($resource->kind() eq "res" && ($resource->is_problem() || $resource->is_practice()) && - !$firstDisplayed) { + !$firstDisplayed) && + $resource->is_raw_problem()) { if ($color) {$result .= ""; } $result .= getDescription($resource, $part); if ($color) {$result .= ""; } @@ -3465,7 +3466,7 @@ sub navHash { my $param = shift; my $id = shift; my $arg = $param . ($id?$self->{ID}:""); - if (defined($arg)) { + if (ref($self) && ref($self->{NAV_MAP}) && defined($arg)) { return $self->{NAV_MAP}->navhash($arg); } return;