--- loncom/interface/lonstatistics.pm 2012/05/03 11:21:27 1.156 +++ loncom/interface/lonstatistics.pm 2016/08/06 01:44:16 1.156.2.6 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.156 2012/05/03 11:21:27 goltermann Exp $ +# $Id: lonstatistics.pm,v 1.156.2.6 2016/08/06 01:44:16 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'); @@ -582,6 +582,14 @@ sub GroupSelect { &PrepareClasslist(); } # + # Make sure course's groupnames and studentgroups tables + # are up to date. + # + if (@Groups) { + &Apache::loncoursedata::ensure_current_groups(); + &Apache::loncoursedata::ensure_current_students_groups(); + } + # # Build the form element my $Str = "\n"; $Str .= '
'; + $Str .= ''; $Str .= ''; $r->print($Str); @@ -691,13 +699,13 @@ sub DisplayClasslist { } $Str .= ''.&mt("Click on a student's name or username to view their chart").'
' + .''.&mt("Click on a student's name or username to view their chart.").'
' .&Apache::loncommon::start_data_table() .&Apache::loncommon::start_data_table_header_row(); foreach my $field (@Fields) { $Str .= '