--- loncom/interface/statistics/lonstathelpers.pm 2020/09/01 15:11:02 1.76.2.2
+++ loncom/interface/statistics/lonstathelpers.pm 2020/09/07 02:58:25 1.76.2.3
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstathelpers.pm,v 1.76.2.2 2020/09/01 15:11:02 raeburn Exp $
+# $Id: lonstathelpers.pm,v 1.76.2.3 2020/09/07 02:58:25 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -181,7 +181,7 @@ sub problem_selector {
$rowspan = ' rowspan="'.$totalresps.'"';
}
$seq_str .= &Apache::loncommon::start_data_table_row().
- '
'.
+ ' | '.
'';
my $link = $res->link.'?symb='.&escape($res->shown_symb);
@@ -197,7 +197,9 @@ sub problem_selector {
my $resptype = $response_types[$i];
if ($resptype =~ m/$AcceptedResponseTypes/) {
if ($byres) {
- unless (exists($partsseen{$part})) {
+ if (exists($partsseen{$part})) {
+ $seq_str .= &Apache::loncommon::continue_data_table_row();
+ } else {
my $parttitle = $part;
if ($part eq '0') {
$parttitle = '';
@@ -209,7 +211,11 @@ sub problem_selector {
$seq_str .= &Apache::loncommon::continue_data_table_row();
}
unless ($partsseen{$part}) {
- $seq_str .= ' | '.
+ my $resprowspan;
+ if (scalar(@response_ids) > 1) {
+ $resprowspan = ' rowspan="'.scalar(@response_ids).'"';
+ }
+ $seq_str .= ' | '.
$parttitle.' | ';
$partsseen{$part} = scalar(@response_ids);
}