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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 12 Oct 2005 14:45:46 -0000


albertel		Wed Oct 12 10:45:46 2005 EDT

  Modified files:              
    /loncom/homework	bridgetask.pm 
  Log:
  - not sure why I was ifing out construct there, but with the redirection calls it was mucking things up now
  - meta mode was getting Dimension spew
  
  
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.68 loncom/homework/bridgetask.pm:1.69
--- loncom/homework/bridgetask.pm:1.68	Wed Oct  5 16:24:59 2005
+++ loncom/homework/bridgetask.pm	Wed Oct 12 10:45:44 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.68 2005/10/05 20:24:59 albertel Exp $
+# $Id: bridgetask.pm,v 1.69 2005/10/12 14:45:44 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -618,10 +618,7 @@
     my ($version,$previous)=&get_version();
     if ($target eq 'grade' || $target eq 'web' || $target eq 'answer' ||
 	$target eq 'tex') {
-	if (
-	    (($target eq 'web') && ($env{'request.state'} ne 'construct')) ||
-	    ($target eq 'answer') || ($target eq 'tex')
-	   ) {
+	if ($target eq 'web' || $target eq 'answer' || $target eq 'tex') {
 	    if ($target eq 'web') {
 		if (&show_task($status,$previous)) {
 		    $result.=&Apache::lonxml::endredirection();
@@ -1545,6 +1542,9 @@
 		$Apache::lonhomework::results{"resource.$version.$dim.status"}=
 		    'pass';
 	    }
+	} else {
+	    # any other targets no output
+	    undef($result);
 	}
 	return $result;
     }