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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 30 Jun 2006 05:10:30 -0000


albertel		Fri Jun 30 01:10:30 2006 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - need to preserve the difference between CANNOT_ANSWR and SHOW_ANSWER mode for problems BUG#4896
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.254 loncom/homework/lonhomework.pm:1.255
--- loncom/homework/lonhomework.pm:1.254	Mon Jun 26 18:33:22 2006
+++ loncom/homework/lonhomework.pm	Fri Jun 30 01:10:29 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.254 2006/06/26 22:33:22 albertel Exp $
+# $Id: lonhomework.pm,v 1.255 2006/06/30 05:10:29 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -344,9 +344,14 @@
 	}
 
     }
+
     if ( $is_correct) {
+	if ($type eq 'problem') {
+	    return ($status);
+	}
 	return ('SHOW_ANSWER');
     }
+
     if ( $status eq 'CANNOT_ANSWER' && 
 	 ($slotstatus ne 'NEEDS_CHECKIN' && $slotstatus ne 'NOT_IN_A_SLOT')) {
 	return ($status,$datemsg);