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

bowersj2 lon-capa-cvs@mail.lon-capa.org
Thu, 27 Feb 2003 02:45:32 -0000


bowersj2		Wed Feb 26 21:45:32 2003 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  Attempt to fix Bug 55 for all iterator-using code. 
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.146 loncom/interface/lonnavmaps.pm:1.147
--- loncom/interface/lonnavmaps.pm:1.146	Fri Feb 21 16:40:07 2003
+++ loncom/interface/lonnavmaps.pm	Wed Feb 26 21:45:32 2003
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.146 2003/02/21 21:40:07 bowersj2 Exp $
+# $Id: lonnavmaps.pm,v 1.147 2003/02/27 02:45:32 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2696,12 +2696,15 @@
         
         foreach (split(/\,/,$metadata)) {
             if ($_ =~ /^parameter\_(.*)\_opendate$/) {
-                push @{$self->{PARTS}}, $1;
+                my $part = $1;
+                # check to see if part is turned off.
+                if (Apache::loncommon::check_if_partid_hidden($part, $self->symb())) {
+                    push @{$self->{PARTS}}, $1;
+                }
             }
         }
         
         
-        # Is this possible to do in one line? - Jeremy
         my @sortedParts = sort @{$self->{PARTS}};
         $self->{PARTS} = \@sortedParts;
     }