[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm
www
www@source.lon-capa.org
Sun, 27 Dec 2009 19:40:43 -0000
www Sun Dec 27 19:40:43 2009 EDT
Modified files:
/loncom/homework default_homework.lcpm
Log:
Bug #5796: confusion when asking for "percentage"
undoing Bug #1967 - the side effects of the medicine are worse than
the illness
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.145 loncom/homework/default_homework.lcpm:1.146
--- loncom/homework/default_homework.lcpm:1.145 Tue Jun 23 03:01:15 2009
+++ loncom/homework/default_homework.lcpm Sun Dec 27 19:40:42 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
#
-# $Id: default_homework.lcpm,v 1.145 2009/06/23 03:01:15 www Exp $
+# $Id: default_homework.lcpm,v 1.146 2009/12/27 19:40:42 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -326,10 +326,10 @@
$element =~ s/\s//g;
}
my $appendunit=$unit;
- if (($unit=~/\%/) && ($answerunit ne '%')) {
- $element=$element/100;
- $appendunit=~s/\%//;
- }
+# if (($unit=~/\%/) && ($answerunit ne '%')) {
+# $element=$element/100;
+# $appendunit=~s/\%//;
+# }
if (($element==0) && ($unit!~/\w/) && ($answerunit=~/\w/)) {
$appendunit=$answerunit;
}