--- loncom/interface/lonstatistics.pm 2013/05/11 21:48:06 1.156.2.3 +++ loncom/interface/lonstatistics.pm 2016/08/14 16:38:05 1.156.2.7 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.156.2.3 2013/05/11 21:48:06 raeburn Exp $ +# $Id: lonstatistics.pm,v 1.156.2.7 2016/08/14 16:38:05 raeburn 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; } @@ -511,7 +511,7 @@ sub map_select { if ($selected_maps[0] eq 'all') { $form .= ' selected="selected"'; } - $form .= ">all\n"; + $form .= '>'.&mt('all').''."\n"; # # Loop through the sequences my @sequences = &selected_sequences_with_assessments('all'); @@ -547,6 +547,11 @@ 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 .= '