--- loncom/interface/lonpopulate.pm 2021/03/31 02:19:59 1.86 +++ loncom/interface/lonpopulate.pm 2021/06/15 20:52:26 1.87 @@ -1,5 +1,5 @@ # automated enrollment configuration handler -# $Id: lonpopulate.pm,v 1.86 2021/03/31 02:19:59 raeburn Exp $ +# $Id: lonpopulate.pm,v 1.87 2021/06/15 20:52:26 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,6 +37,7 @@ use Apache::lonuserutils; use Apache::Constants qw(:common :http REDIRECT); use Time::Local; use LONCAPA::Enrollment; +use LONCAPA qw(:DEFAULT :match); ############################################################### sub header { @@ -903,10 +904,12 @@ sub print_main_frame { '.&mt('LON-CAPA section ID').' '); $r->print(&Apache::loncommon::end_data_table_row()); - for (my $i=0; $i<@xlists; $i++) { + my @showable; + &reformat_xlists($dom,$crs,$enrollvar{'coursecode'},\@xlists,\@showable); + for (my $i=0; $i<@showable; $i++) { my $xl = ' '; my $lc_sec = ' '; - if ($xlists[$i] =~ /^([^:]+):?(.*)$/) { + if ($showable[$i] =~ /^([^:]+):?(.*)$/) { $xl = $1; $lc_sec = $2; } @@ -2063,8 +2066,10 @@ sub print_crosslistings_menu { if ($crosscount > 0) { $response .= &mt('The [quant,_1,course] listed below remain crosslisted with this LON-CAPA course, and students enrolling in these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update.',$crosscount). '