[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 29 Jan 2004 21:31:08 -0000


albertel		Thu Jan 29 16:31:08 2004 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - BUG#1508, if a problem explictly sets a maxtries show it in CSTR space
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.127 loncom/homework/inputtags.pm:1.128
--- loncom/homework/inputtags.pm:1.127	Wed Jan 28 16:42:51 2004
+++ loncom/homework/inputtags.pm	Thu Jan 29 16:31:07 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.127 2004/01/28 21:42:51 albertel Exp $
+# $Id: inputtags.pm,v 1.128 2004/01/29 21:31:07 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -678,7 +678,13 @@
 	  }
       } else {
 	  $trystr = "<td>".&mt('Tries')." $tries";
-	  if($ENV{'request.state'} ne 'construct') { $trystr.="/$maxtries"; }
+	  if($ENV{'request.state'} ne 'construct') {
+	      $trystr.="/$maxtries";
+	  } else {
+	      if (defined($Apache::inputtags::params{'maxtries'})) {
+		  $trystr.="/".$Apache::inputtags::params{'maxtries'};
+	      }
+	  }
 	  $trystr.="</td>";
       }
     }