--- loncom/interface/lonprintout.pm 2003/05/15 19:11:26 1.177 +++ loncom/interface/lonprintout.pm 2003/05/15 20:07:23 1.178 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.177 2003/05/15 19:11:26 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.178 2003/05/15 20:07:23 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -842,6 +842,7 @@ sub printHelper { $helper->declareVar('postdata'); $helper->declareVar('filename'); $helper->declareVar('construction'); + $helper->declareVar('assignment'); # This will persistently load in the data we want from the # very first screen. @@ -871,7 +872,7 @@ sub printHelper { } my ($resourceTitle,$sequenceTitle,$mapTitle) = &details_for_menu; - $helper->{VARS}->{'assignment'} = $sequenceTitle; + if ($sequenceTitle ne '') {$helper->{VARS}->{'assignment'}=$sequenceTitle;} # Extract map @@ -904,7 +905,6 @@ sub printHelper { $subdir='/home/httpd/html/res/'.$subdir; } - # What can be printed is a very dynamic decision based on # lots of factors. So we need to dynamically build this list. # To prevent security leaks, states are only added to the wizard