--- loncom/interface/statistics/lonstathelpers.pm 2020/08/26 21:50:16 1.76.2.1 +++ loncom/interface/statistics/lonstathelpers.pm 2020/09/01 15:11:02 1.76.2.2 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstathelpers.pm,v 1.76.2.1 2020/08/26 21:50:16 raeburn Exp $ +# $Id: lonstathelpers.pm,v 1.76.2.2 2020/09/01 15:11:02 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -159,6 +159,9 @@ sub problem_selector { foreach my $seq (@sequences) { my $seq_str = ''; foreach my $res (&get_resources($navmap,$seq)) { + if ($res->src() eq '/res/lib/templates/simpleproblem.problem') { + next if (grep(/^placeholder$/,@{$res->parts})); + } my $title = $res->compTitle; if (! defined($title) || $title eq '') { ($title) = ($res->src =~ m:/([^/]*)$:); @@ -173,8 +176,12 @@ sub problem_selector { if ($env{'form.problemchoice'} eq $res->symb()) { $checked = ' checked="checked"'; } + my $rowspan; + if ($totalresps > 1) { + $rowspan = ' rowspan="'.$totalresps.'"'; + } $seq_str .= &Apache::loncommon::start_data_table_row(). - ''. + ''. ''; my $link = $res->link.'?symb='.&escape($res->shown_symb);