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

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


raeburn		Mon Sep 15 22:02:31 2008 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Bug 5789.
  - Include practice problems when displaying "Select Problem(s) to print" page.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.539 loncom/interface/lonprintout.pm:1.540
--- loncom/interface/lonprintout.pm:1.539	Fri Sep  5 07:16:13 2008
+++ loncom/interface/lonprintout.pm	Mon Sep 15 22:02:31 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.539 2008/09/05 11:16:13 onken Exp $
+# $Id: lonprintout.pm,v 1.540 2008/09/16 02:02:31 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2647,7 +2647,7 @@
     }
 
     # Useful filter strings
-    my $isProblem = '($res->is_problem()||$res->contains_problem) ';
+    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 $isNotMap = '!$res->is_sequence()';