--- loncom/interface/lonstatistics.pm 2015/03/10 00:47:18 1.161 +++ loncom/interface/lonstatistics.pm 2016/08/14 16:13:22 1.163 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.161 2015/03/10 00:47:18 raeburn Exp $ +# $Id: lonstatistics.pm,v 1.163 2016/08/14 16:13:22 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; } @@ -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 .= '