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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 28 Aug 2003 12:46:31 -0000


sakharuk		Thu Aug 28 08:46:31 2003 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Bug 2108 (Cannot PRT problem having status "Units incorrect") is fixed.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.112 loncom/homework/inputtags.pm:1.113
--- loncom/homework/inputtags.pm:1.112	Mon Aug  4 17:18:55 2003
+++ loncom/homework/inputtags.pm	Thu Aug 28 08:46:31 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.112 2003/08/04 21:18:55 albertel Exp $
+# $Id: inputtags.pm,v 1.113 2003/08/28 12:46:31 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -415,8 +415,8 @@
       $bgcolor=$possiblecolors{'not_charged_try'};
       $button=1;
   } elsif ($award eq 'UNIT_FAIL') {
-      $message = "Units incorrect. ".
-       &Apache::loncommon::help_open_topic('Physical_Units'); #Computer reads units as %s";
+      $message = "Units incorrect. ";
+      if ($target ne 'tex') {$message.=&Apache::loncommon::help_open_topic('Physical_Units');} #Computer reads units as %s";
       $bgcolor=$possiblecolors{'not_charged_try'};
       $button=1;
   } elsif ($award eq 'UNIT_NOTNEEDED') {