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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 13 Mar 2007 00:21:29 -0000


albertel		Mon Mar 12 20:21:29 2007 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - BUG#5193, previous answer status isn't tath useful once the problem is due
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.217 loncom/homework/inputtags.pm:1.218
--- loncom/homework/inputtags.pm:1.217	Wed Feb 28 21:30:03 2007
+++ loncom/homework/inputtags.pm	Mon Mar 12 20:21:28 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.217 2007/03/01 02:30:03 albertel Exp $
+# $Id: inputtags.pm,v 1.218 2007/03/13 00:21:28 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1095,6 +1095,9 @@
 	if ( $status eq 'SHOW_ANSWER' || $status eq 'CANNOT_ANSWER') {
 	    $showbutton = 0;
 	}
+	if ( $status eq 'SHOW_ANSWER') {
+	    undef($previousmsg);
+	}
 	if ( $showbutton ) { 
 	    if ($target ne 'tex') {
 		$button = '<input onsubmit="javascript:setSubmittedPart(\''.$id.'\')" type="submit" name="submit_'.$id.'" value="'.&mt('Submit Answer').'" />';