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

www www@source.lon-capa.org
Thu, 02 Sep 2010 10:34:04 -0000


www		Thu Sep  2 10:34:04 2010 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  Bubblesheet operator upload works again
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.636 loncom/homework/grades.pm:1.637
--- loncom/homework/grades.pm:1.636	Mon Aug 30 09:47:32 2010
+++ loncom/homework/grades.pm	Thu Sep  2 10:34:04 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.636 2010/08/30 09:47:32 wenzelju Exp $
+# $Id: grades.pm,v 1.637 2010/09/02 10:34:04 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -9182,9 +9182,9 @@
     &Apache::lonenc::check_decrypt(\$symb);                             
 
     $ssi_error = 0;
-    if ($symb eq '' || $command eq '') {
+    if (($symb eq '' || $command eq '') && ($env{'request.course.id'})) {
 #
-# Not called from a resource
+# Not called from a resource, but inside a course
 #    
         &startpage($request,undef,[],1,1);
         &select_problem($request);