--- loncom/homework/caparesponse/caparesponse.pm 2003/05/19 21:15:21 1.102
+++ loncom/homework/caparesponse/caparesponse.pm 2003/05/19 21:40:04 1.103
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.102 2003/05/19 21:15:21 albertel Exp $
+# $Id: caparesponse.pm,v 1.103 2003/05/19 21:40:04 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -345,11 +345,10 @@ sub end_numericalresponse {
"Unit: $unit");
}
} elsif ($target eq 'analyze') {
- push (@{ $Apache::lonhomework::analyze{"$part_id.unit"} },
- $unit);
+ push (@{ $Apache::lonhomework::analyze{"$part_id.unit"} }, $unit);
}
}
- if ($type || $token->[1] eq 'stringresponse') {
+ if ($type || $$tagstack[-1] eq 'stringresponse') {
my $string='Case Insensitive';
if ($type eq 'mc') {
$string='Multiple Choice';
@@ -369,7 +368,7 @@ sub end_numericalresponse {
"$string");
}
} elsif ($target eq 'analyze') {
- push (@{ $Apache::lonhomework::analyze{"$part_id.type"} },
+ push (@{ $Apache::lonhomework::analyze{"$part_id.str_type"} },
$type);
}
}