[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 10 Aug 2004 19:22:32 -0000
albertel Tue Aug 10 15:22:32 2004 EDT
Modified files:
/loncom/xml scripttag.pm
Log:
- <display> needs to return it's output in some cases when in grade/analyze/answer`
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.113 loncom/xml/scripttag.pm:1.114
--- loncom/xml/scripttag.pm:1.113 Thu Jul 15 12:43:37 2004
+++ loncom/xml/scripttag.pm Tue Aug 10 15:22:32 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# <script> definiton
#
-# $Id: scripttag.pm,v 1.113 2004/07/15 16:43:37 albertel Exp $
+# $Id: scripttag.pm,v 1.114 2004/08/10 19:22:32 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -179,7 +179,10 @@
$result=&Apache::run::run($bodytext,$safeeval);
if ($target eq 'grade' || $target eq 'answer' ||
$target eq 'analyze') {
- $result=''; # grade should produce no output
+ # grade/answer/analyxe should produce no output but if we
+ # are redirecting, the redirecter should know what to do
+ # with the output
+ if (!$Apache::lonxml::redirection) { $result=''; }
}
$Apache::lonxml::post_evaluate=0;
} elsif ($target eq "edit" ) {