--- loncom/homework/optionresponse.pm 2003/08/01 19:04:06 1.84
+++ loncom/homework/optionresponse.pm 2003/09/22 20:49:01 1.86
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: optionresponse.pm,v 1.84 2003/08/01 19:04:06 sakharuk Exp $
+# $Id: optionresponse.pm,v 1.86 2003/09/22 20:49:01 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -303,9 +303,8 @@ sub displayfoils {
my $break;
my $solved=$Apache::lonhomework::history{"resource.$part.solved"};
my $status=$Apache::inputtags::status[-1];
- if (
- ($target ne 'tex') &&
- (($solved =~ /^correct/) || ($status eq 'SHOW_ANSWER')) ) {
+ if ( ($target ne 'tex') &&
+ &Apache::response::show_answer() ) {
foreach $name (@whichopt) {
my $text=$Apache::response::foilgroup{$name.'.text'};
if ($text!~/^\s*$/) {
@@ -438,7 +437,7 @@ sub optionlist_correction {
my $texoptionlist = shift;
if ($texoptionlist=~/