[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 01 Sep 2008 10:02:01 -0000
bisitz Mon Sep 1 06:02:01 2008 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
Bugfix:
Only print help link for 'Some items were not submitted.', if target is not tex/pdf
Before this fix TeX errors occurred when printing such problems where this message was displayed.
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.244 loncom/homework/inputtags.pm:1.245
--- loncom/homework/inputtags.pm:1.244 Sat Jul 26 15:11:23 2008
+++ loncom/homework/inputtags.pm Mon Sep 1 06:01:57 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.244 2008/07/26 19:11:23 raeburn Exp $
+# $Id: inputtags.pm,v 1.245 2008/09/01 10:01:57 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -729,7 +729,10 @@
$css_class=$possible_class{'not_charged_try'};
$button = 1;
} elsif ($award eq 'MISSING_ANSWER') {
- $message = &mt('Some items were not submitted.').&Apache::loncommon::help_open_topic('Some_Items_Were_Not_Submitted');
+ $message = &mt('Some items were not submitted.');
+ if ($target ne 'tex') {
+ $message .= &Apache::loncommon::help_open_topic('Some_Items_Were_Not_Submitted');
+ }
$css_class=$possible_class{'not_charged_try'};
$button = 1;
} elsif ($award eq 'ERROR') {