--- loncom/interface/statistics/lonstathelpers.pm 2020/10/08 12:02:07 1.80 +++ loncom/interface/statistics/lonstathelpers.pm 2023/07/12 15:09:41 1.81 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstathelpers.pm,v 1.80 2020/10/08 12:02:07 raeburn Exp $ +# $Id: lonstathelpers.pm,v 1.81 2023/07/12 15:09:41 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -198,7 +198,7 @@ sub problem_selector { my %partsseen; foreach my $part (@{$res->parts}) { my (@response_ids,@response_types); - if ($res->is_tool) { + if (($include_tools) && ($res->is_tool)) { @response_ids = (); @response_types = ('tool'); } else {