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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 09 Jun 2006 16:27:34 -0000


albertel		Fri Jun  9 12:27:34 2006 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - two reason to be in cannot_answer mode (exceeded tries or got it correct)
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.194 loncom/homework/inputtags.pm:1.195
--- loncom/homework/inputtags.pm:1.194	Mon Jun  5 14:53:03 2006
+++ loncom/homework/inputtags.pm	Fri Jun  9 12:27:28 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.194 2006/06/05 18:53:03 banghart Exp $
+# $Id: inputtags.pm,v 1.195 2006/06/09 16:27:28 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -284,7 +284,8 @@
 	my $partid=$Apache::inputtags::part;
 	my $id=$Apache::inputtags::response[-1];
 	if ($Apache::inputtags::status[-1] eq 'CAN_ANSWER'
-	    || $Apache::inputtags::status[-1] eq 'CANNOT_ANSWER') {
+	    || ($Apache::inputtags::status[-1] eq 'CANNOT_ANSWER' &&
+		$Apache::lonhomework::history{"resource.$partid.solved"} !~ /^correct/	)) {
 	    my $size = &Apache::lonxml::get_param('size',$parstack,$safeeval);
 	    my $maxlength;
 	    if ($size eq '') { $size=20; } else {