[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm
www
www@source.lon-capa.org
Sat, 05 Jun 2010 22:25:22 -0000
www Sat Jun 5 22:25:22 2010 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.pm
Log:
Bug #3973: don't show units twice if both exam mode and turnoffunits
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.237 loncom/homework/caparesponse/caparesponse.pm:1.238
--- loncom/homework/caparesponse/caparesponse.pm:1.237 Sun Feb 28 23:45:43 2010
+++ loncom/homework/caparesponse/caparesponse.pm Sat Jun 5 22:25:22 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.237 2010/02/28 23:45:43 raeburn Exp $
+# $Id: caparesponse.pm,v 1.238 2010/06/05 22:25:22 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -305,7 +305,7 @@
my $hideunit=&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffunit');
&Apache::lonxml::debug("Got unit $hideunit for $partid $id");
#no way to enter units, with radio buttons
- if (lc($hideunit) eq "yes") {
+ if ((lc($hideunit) eq "yes") && ($Apache::lonhomework::type ne 'exam')) {
my $unit=&Apache::lonxml::get_param_var('unit',$parstack,
$safeeval);
if ($unit =~ /\S/) { $result.=" (in $unit) "; }