--- loncom/interface/lonhelper.pm 2003/05/27 19:59:38 1.34 +++ loncom/interface/lonhelper.pm 2003/06/12 13:52:06 1.37 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.34 2003/05/27 19:59:38 bowersj2 Exp $ +# $Id: lonhelper.pm,v 1.37 2003/06/12 13:52:06 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1694,6 +1694,10 @@ BUTTONS $col .= "checked "; $checked = 1; } + if ($multichoice) { # all resources start checked; see bug 1174 + $col .= "checked "; + $checked = 1; + } $col .= "value='" . HTML::Entities::encode(&$valueFunc($resource)) . "' />"; @@ -2587,7 +2591,7 @@ sub render { $result .= "
\n" . "
\n" . "" . - "" . + "" . "\n" . "\n\n" . @@ -2669,7 +2673,7 @@ sub render { my $navmap = Apache::lonnavmaps::navmap->new( $ENV{"request.course.fn"}.".db", $ENV{"request.course.fn"}."_parms.db", 0, 0); - my $res = $navmap->getById($vars->{RESOURCE_ID}); + my $res = $navmap->getByMapPc($vars->{RESOURCE_ID}); my $title = $res->compTitle(); $symb = $res->symb(); $navmap->untieHashes();