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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 20 Jun 2005 19:47:49 -0000


albertel		Mon Jun 20 15:47:49 2005 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - BUG#4130
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.329 loncom/interface/lonnavmaps.pm:1.330
--- loncom/interface/lonnavmaps.pm:1.329	Fri Jun 17 17:17:09 2005
+++ loncom/interface/lonnavmaps.pm	Mon Jun 20 15:47:47 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.329 2005/06/17 21:17:09 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.330 2005/06/20 19:47:47 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4502,7 +4502,8 @@
     my $suppressFeedback = $self->problemstatus($part) eq 'no';
     # If there's an answer date and we're past it, don't
     # suppress the feedback; student should know
-    if ($self->answerdate($part) && $self->answerdate($part) < time()) {
+    if ($self->duedate($part) && $self->duedate($part) < time() &&
+	$self->answerdate($part) && $self->answerdate($part) < time()) {
 	$suppressFeedback = 0;
     }