[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Tue, 16 Sep 2008 02:45:22 -0000


raeburn		Mon Sep 15 22:45:22 2008 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Bug 5789. Include Practice Problems when displaying a lost of problems to print.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.540 loncom/interface/lonprintout.pm:1.541
--- loncom/interface/lonprintout.pm:1.540	Mon Sep 15 22:02:31 2008
+++ loncom/interface/lonprintout.pm	Mon Sep 15 22:45:21 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.540 2008/09/16 02:02:31 raeburn Exp $
+# $Id: lonprintout.pm,v 1.541 2008/09/16 02:45:21 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2649,7 +2649,7 @@
     # Useful filter strings
     my $isProblem = '($res->is_problem()||$res->contains_problem||$res->is_practice()) ';
     $isProblem .= ' && !$res->randomout()' if !$userCanSeeHidden;
-    my $isProblemOrMap = '$res->is_problem() || $res->contains_problem() || $res->is_sequence()';
+    my $isProblemOrMap = '$res->is_problem() || $res->contains_problem() || $res->is_sequence() || $res->is_practice()';
     my $isNotMap = '!$res->is_sequence()';
     $isNotMap .= ' && !$res->randomout()' if !$userCanSeeHidden;
     my $isMap = '$res->is_map()';