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

raeburn lon-capa-cvs@mail.lon-capa.org
Wed, 31 May 2006 14:25:02 -0000


raeburn		Wed May 31 10:25:02 2006 EDT

  Modified files:              
    /loncom/interface	lonwhatsnew.pm 
  Log:
  Fix bug 4801.  Row colors still not alternating as desired - more work required.
  
  
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.56 loncom/interface/lonwhatsnew.pm:1.57
--- loncom/interface/lonwhatsnew.pm:1.56	Tue May 30 16:16:23 2006
+++ loncom/interface/lonwhatsnew.pm	Wed May 31 10:25:02 2006
@@ -1,5 +1,5 @@
 #
-# $Id: lonwhatsnew.pm,v 1.56 2006/05/30 20:16:23 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.57 2006/05/31 14:25:02 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -769,8 +769,9 @@
 
 # Maxtries and degree of difficulty for problem parts, unless handgradeable
         if ($$show{'abovethreshold'}) {  
-            &check_thresholds($resource,$symb,\%resourcetracker,$triggered,
-                       $threshold,$warnings,$warningnum,$rowColor1,$rowColor2);
+            $warningnum = &check_thresholds($resource,$symb,\%resourcetracker,
+                                            $triggered,$threshold,$warnings,
+                                            $warningnum,$rowColor1,$rowColor2);
         }
 
     }
@@ -880,7 +881,7 @@
         }
     }
     if ($warning) {
-        if ($$warningnum %2 == 1) {
+        if ($warningnum%2 == 1) {
             $rowColor = $rowColor1;
         } else {
             $rowColor = $rowColor2;
@@ -912,8 +913,9 @@
             }
         }
         push(@{$warnings},$symb);
-        $$warningnum ++;
+        $warningnum ++;
     }
+    return $warningnum;
 }