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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 16 Sep 2002 20:39:40 -0000


albertel		Mon Sep 16 16:39:40 2002 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - fixes BUG#778
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.87 loncom/homework/lonhomework.pm:1.88
--- loncom/homework/lonhomework.pm:1.87	Sat Sep  7 14:21:44 2002
+++ loncom/homework/lonhomework.pm	Mon Sep 16 16:39:39 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.87 2002/09/07 18:21:44 www Exp $
+# $Id: lonhomework.pm,v 1.88 2002/09/16 20:39:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -79,7 +79,8 @@
 	return ('web');
       }
     } else {
-      if ( $ENV{'form.problemmode'} eq 'View' ) {
+      if ( $ENV{'form.problemmode'} eq 'View' ||
+	   $ENV{'form.problemmode'} eq 'Discard Edits and View') {
 	if ( defined($ENV{'form.submitted'}) &&
 	     (!defined($ENV{'form.resetdata'})) ) {
 	  return ('grade', 'web','answer');