--- loncom/interface/lonstatistics.pm 2016/08/06 01:44:16 1.156.2.6 +++ loncom/interface/lonstatistics.pm 2020/11/10 19:28:32 1.165 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.156.2.6 2016/08/06 01:44:16 raeburn Exp $ +# $Id: lonstatistics.pm,v 1.165 2020/11/10 19:28:32 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -466,7 +466,7 @@ sub selected_sequences_with_assessments my @sequences_with_assessments; foreach my $sequence (@sequences) { - if ($navmap->hasResource($sequence,sub { shift->is_problem(); },0,1)){ + if ($navmap->hasResource($sequence,sub { shift->is_gradable(); },0,1)){ push(@sequences_with_assessments,$sequence); } } @@ -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 .= '