--- loncom/interface/lonstatistics.pm 2023/09/07 23:58:32 1.156.2.8.2.1 +++ loncom/interface/lonstatistics.pm 2013/04/11 15:49:49 1.158 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.156.2.8.2.1 2023/09/07 23:58:32 raeburn Exp $ +# $Id: lonstatistics.pm,v 1.158 2013/04/11 15:49:49 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -366,7 +366,7 @@ sub section_or_group_text { sub get_students { if (! @Students) { - &PrepareClasslist(); + &PrepareClasslist() } return @Students; } @@ -466,7 +466,7 @@ sub selected_sequences_with_assessments my @sequences_with_assessments; foreach my $sequence (@sequences) { - if ($navmap->hasResource($sequence,sub { shift->is_gradable(); },0,1)){ + if ($navmap->hasResource($sequence,sub { shift->is_problem(); },0,1)){ push(@sequences_with_assessments,$sequence); } } @@ -511,7 +511,7 @@ sub map_select { if ($selected_maps[0] eq 'all') { $form .= ' selected="selected"'; } - $form .= '>'.&mt('all').''."\n"; + $form .= ">all\n"; # # Loop through the sequences my @sequences = &selected_sequences_with_assessments('all'); @@ -547,11 +547,6 @@ sub SectionSelect { &PrepareClasslist() } # - # Make sure course's student table is up to date - if (@Sections) { - &Apache::loncoursedata::ensure_current_sections(); - } - # # Build the form element my $Str = "\n"; $Str .= '