--- loncom/interface/lonviewclasslist.pm 2015/03/17 00:08:48 1.17 +++ loncom/interface/lonviewclasslist.pm 2023/09/26 19:11:02 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to display the classlist # -# $Id: lonviewclasslist.pm,v 1.17 2015/03/17 00:08:48 raeburn Exp $ +# $Id: lonviewclasslist.pm,v 1.19 2023/09/26 19:11:02 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -103,7 +103,7 @@ ENDHEADER classlists => $rosterprefs, }; $changes{'classlists'} = {}; - &Apache::courseprefs::process_changes($cdom,'classlists',\%values, + &Apache::courseprefs::process_changes($cdom,$cnum,'classlists',\%values, $rosterprefs, $changes{'classlists'}, $allitems,\%disallowed,$crstype); @@ -136,7 +136,7 @@ ENDHEADER $current->{$setting} = $env{"course.$env{'request.course.id'}.$setting"}; } my ($output,$rowtotal) = - &Apache::courseprefs::print_config_box($r,$cdom,'display', + &Apache::courseprefs::print_config_box($r,$cdom,$cnum,'display', 'viewableroster', $rosterprefs,$current, $allitems,$crstype); @@ -293,8 +293,10 @@ sub html_classlist { } else { $title = &mt($titleplural.' in any section'); $listtype = 'in the course'; + if ($crstype eq 'Community') { + $listtype = 'in the community'; + } } - if ($viewsettings->{'student_opt_in'}) { if ($env{'request.role'} =~ /^st/) { $Str .= &print_roster_form($crstype);