--- loncom/interface/lonprintout.pm 2003/09/29 20:06:20 1.242
+++ loncom/interface/lonprintout.pm 2003/09/30 14:43:26 1.243
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.242 2003/09/29 20:06:20 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.243 2003/09/30 14:43:26 bowersj2 Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1225,7 +1225,8 @@ sub printHelper {
# If we're in a sequence...
if (($helper->{'VARS'}->{'construction'} ne '1') &&
- $helper->{VARS}->{'postdata'} && $sequenceTitle) {
+ $helper->{VARS}->{'postdata'} &&
+ $helper->{VARS}->{'assignment'}) {
# Allow problems from sequence
push @{$printChoices}, ["Problems in $sequenceTitle", 'map_problems', 'CHOOSE_PROBLEMS'];
# Allow all resources from sequence
@@ -1260,7 +1261,7 @@ HELPERFRAGMENT
# problems in the course, optionally for selected students
if ($userPriviledged && ($helper->{VARS}->{'postdata'}=~/\/res\//)) {
push @{$printChoices}, ['Problems from entire course', 'all_problems', 'ALL_PROBLEMS'];
- if ($sequenceTitle) {
+ if ($helper->{VARS}->{'assignment'}) {
push @{$printChoices}, ["Problems from $sequenceTitle for selected students", 'problems_for_students', 'CHOOSE_STUDENTS'];
}