[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 17 Aug 2005 16:37:13 -0000
albertel Wed Aug 17 12:37:13 2005 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.pm
Log:
-BUG#4276, show the 'answerdisplay' attibute in answer mode for 're' type
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.177 loncom/homework/caparesponse/caparesponse.pm:1.178
--- loncom/homework/caparesponse/caparesponse.pm:1.177 Tue Aug 2 15:01:18 2005
+++ loncom/homework/caparesponse/caparesponse.pm Wed Aug 17 12:37:11 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.177 2005/08/02 19:01:18 albertel Exp $
+# $Id: caparesponse.pm,v 1.178 2005/08/17 16:37:11 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -761,6 +761,10 @@
# foreach my $ans (@answers) {
if ($target eq 'answer') {
$result.=&Apache::response::answer_part('stringresponse',$answer);
+ if ($type eq 're') {
+ $result.=&Apache::response::answer_part('stringresponse',
+ $answerdisplay);
+ }
} elsif ($target eq 'analyze') {
push (@{ $Apache::lonhomework::analyze{"$part.$id.answer"} },
$answer);