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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 21 Aug 2003 18:29:54 -0000


albertel		Thu Aug 21 14:29:54 2003 EDT

  Modified files:              (Branch: version_1_0_1)
    /loncom/interface	lonnavmaps.pm 
  Log:
  - backport fix for BUG#2057
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.219 loncom/interface/lonnavmaps.pm:1.219.2.1
--- loncom/interface/lonnavmaps.pm:1.219	Tue Jul 29 01:22:56 2003
+++ loncom/interface/lonnavmaps.pm	Thu Aug 21 14:29:54 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.219 2003/07/29 05:22:56 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.219.2.1 2003/08/21 18:29:54 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3945,8 +3945,8 @@
     if ($completionStatus == INCORRECT || $completionStatus == INCORRECT_BY_OVERRIDE) {
         # and there are TRIES LEFT:
         if ($self->tries($part) < $self->maxtries($part) || !$self->maxtries($part)) {
-            return TRIES_LEFT;
-        }
+	    return $suppressFeedback ? ANSWER_SUBMITTED : TRIES_LEFT;
+	}
         return $suppressFeedback ? ANSWER_SUBMITTED : INCORRECT; # otherwise, return orange; student can't fix this
     }