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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 09 Mar 2004 21:26:59 -0000


albertel		Tue Mar  9 16:26:59 2004 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - BUG#2755, lonnavmaps summary mode would show single part problems with a <part> tag as always INCORRECT even after correct, it was trying to do part 0 always on a single part problem rather than passing in the real partnumber
  
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.252 loncom/interface/lonnavmaps.pm:1.253
--- loncom/interface/lonnavmaps.pm:1.252	Mon Mar  8 14:41:28 2004
+++ loncom/interface/lonnavmaps.pm	Tue Mar  9 16:26:59 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.252 2004/03/08 19:41:28 matthew Exp $
+# $Id: lonnavmaps.pm,v 1.253 2004/03/09 21:26:59 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1126,7 +1126,7 @@
 
     # If there is a single part, just show the simple status
     if ($resource->singlepart()) {
-	my $status = $resource->simpleStatus('0');
+	my $status = $resource->simpleStatus(${$resource->parts}[0]);
 	return $td . "<font color='" . $statusColors{$status} . "'>"
 	    . $statusStrings{$status} . "</font>" . $endtd;
     }