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

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 22 Sep 2003 21:03:26 -0000


matthew		Mon Sep 22 17:03:26 2003 EDT

  Modified files:              
    /loncom/interface/spreadsheet	assesscalc.pm 
  Log:
  Fix error in blackout dates so we no longer show the forbidden data when 
  there is no answerdate set.
  
  
Index: loncom/interface/spreadsheet/assesscalc.pm
diff -u loncom/interface/spreadsheet/assesscalc.pm:1.23 loncom/interface/spreadsheet/assesscalc.pm:1.24
--- loncom/interface/spreadsheet/assesscalc.pm:1.23	Wed Sep 17 13:32:56 2003
+++ loncom/interface/spreadsheet/assesscalc.pm	Mon Sep 22 17:03:25 2003
@@ -1,5 +1,5 @@
 #
-# $Id: assesscalc.pm,v 1.23 2003/09/17 17:32:56 albertel Exp $
+# $Id: assesscalc.pm,v 1.24 2003/09/22 21:03:25 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -689,7 +689,7 @@
         while (my ($parm,$value) = each(%parameters)) {
             last if ($self->blackout());
             next if ($parm !~ /^(parameter_.*)_problemstatus$/);
-            if ($parameters{$1.'_answerdate'} eq '' ||
+            if ($parameters{$1.'_answerdate'} ne '' &&
                 $parameters{$1.'_answerdate'} < time) {
                 next;
             }