--- loncom/interface/lonprintout.pm 2024/11/11 03:20:46 1.704 +++ loncom/interface/lonprintout.pm 2024/12/10 04:52:30 1.705 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.704 2024/11/11 03:20:46 raeburn Exp $ +# $Id: lonprintout.pm,v 1.705 2024/12/10 04:52:30 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -812,16 +812,17 @@ sub map_print_dates { # Parameters: # $username - Name of user for whom we are checking. # $domain - Domain of user we are checking. +# $section - Section for user for whom we are checking. # $map - map name. # Returns: # 0 - map is not incomplete. # 1 - map is incomplete. # sub incomplete { - my ($username, $domain, $map) = @_; + my ($username, $domain, $section, $map) = @_; - my $navmap = Apache::lonnavmaps::navmap->new($username, $domain); + my $navmap = Apache::lonnavmaps::navmap->new($username, $domain, $section); if (defined($navmap)) { @@ -878,7 +879,7 @@ sub master_seq_to_person_seq { } my $navmap = Apache::lonnavmaps::navmap->new($username, $userdomain, - $code, $unhidden); + $usersection, $code, $unhidden); my ($start,$finish); if ($map) { @@ -3867,7 +3868,7 @@ sub print_resources { if ( !($type eq 'problems' && ($curresline!~ m/$LONCAPA::assess_page_re/)) ) { - if ($print_incomplete && !&incomplete($username, $userdomain, $res_url)) { + if ($print_incomplete && !&incomplete($username, $userdomain, $usersection, $res_url)) { next; } $actually_printed++; # we're going to print one. @@ -4236,7 +4237,6 @@ sub printHelper { } } - } # Detect whether we're coming from construction space