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

matthew lon-capa-cvs@mail.lon-capa.org
Fri, 11 Feb 2005 21:25:53 -0000


matthew		Fri Feb 11 16:25:53 2005 EDT

  Modified files:              
    /loncom/interface/statistics	lonstudentassessment.pm 
  Log:
  Bug 3934 (sort of): HTML output of chart now shows $awarded*$weight even
  when the student does not have a value set for resource.$part.solved and
  resource.$part.tries.
  
  
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.110 loncom/interface/statistics/lonstudentassessment.pm:1.111
--- loncom/interface/statistics/lonstudentassessment.pm:1.110	Fri Jan 21 13:52:40 2005
+++ loncom/interface/statistics/lonstudentassessment.pm	Fri Feb 11 16:25:53 2005
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.110 2005/01/21 18:52:40 albertel Exp $
+# $Id: lonstudentassessment.pm,v 1.111 2005/02/11 21:25:53 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1893,7 +1893,7 @@
                     $max -= $weight; # Do not count 'excused' problems.
                 }
                 $hasdata = 1;
-            } else {
+            } elsif (!exists($resource_data->{'resource.'.$part.'.awarded'})){
                 # Unsolved.  Did they try?
                 if (exists($resource_data->{'resource.'.$part.'.tries'})){
                     $symbol = '.';