--- loncom/interface/lonstatistics.pm 2005/03/14 20:28:21 1.119 +++ loncom/interface/lonstatistics.pm 2005/03/18 00:19:35 1.121 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.119 2005/03/14 20:28:21 matthew Exp $ +# $Id: lonstatistics.pm,v 1.121 2005/03/18 00:19:35 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -367,14 +367,14 @@ sub section_and_enrollment_description { my @sections = &Apache::lonstatistics::get_selected_sections(); my $description = &mt('Unable to determine section and enrollment'); if (scalar(@sections) == 1 && $sections[0] ne 'all') { - $description = &mt('Section [_1]. [_2] enrollment status', + $description = &mt('Section [_1]. [_2] enrollment status.', $sections[0],$ENV{'form.Status'}); } elsif (scalar(@sections) && $sections[0] eq 'all') { - $description = &mt('All sections. [_1] enrollment status', + $description = &mt('All sections. [_1] enrollment status.', $ENV{'form.Status'}); } elsif (scalar(@sections)) { my $lastsection = pop(@sections); - $description = &mt('Sections [_1] and [_2]. [_3] enrollment status', + $description = &mt('Sections [_1] and [_2]. [_3] enrollment status.', join(', ',@sections),$lastsection, $ENV{'form.Status'}); } @@ -587,7 +587,7 @@ sub selected_sequences_with_assessments sub { shift->is_map(); },1,0,1); my @sequences_with_assessments; for my $sequence ($navmap->getById('0.0'), @sequences) { - if ($navmap->hasResource($sequence,sub { shift->is_problem(); }, 0)){ + if ($navmap->hasResource($sequence,sub { shift->is_problem(); },0,1)){ push(@sequences_with_assessments,$sequence); } }