[LON-CAPA-cvs] cvs: loncom /interface/statistics lonstathelpers.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Tue, 15 Jun 2004 14:43:46 -0000
matthew Tue Jun 15 10:43:46 2004 EDT
Modified files:
/loncom/interface/statistics lonstathelpers.pm
Log:
get_prev_curr_next: skip survey problems when not explictly asked for them.
Index: loncom/interface/statistics/lonstathelpers.pm
diff -u loncom/interface/statistics/lonstathelpers.pm:1.14 loncom/interface/statistics/lonstathelpers.pm:1.15
--- loncom/interface/statistics/lonstathelpers.pm:1.14 Tue Jun 15 10:26:10 2004
+++ loncom/interface/statistics/lonstathelpers.pm Tue Jun 15 10:43:45 2004
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstathelpers.pm,v 1.14 2004/06/15 14:26:10 matthew Exp $
+# $Id: lonstathelpers.pm,v 1.15 2004/06/15 14:43:45 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -262,12 +262,14 @@
next if ($res->{'type'} ne 'assessment');
foreach my $part (@{$res->{'parts'}}) {
my $partdata = $res->{'partdata'}->{$part};
- if ($granularity eq 'part_survey' && $partdata->{'Survey'}){
- push (@Resource,
- { symb => $res->{symb},
- part => $part,
- resource => $res,
- } );
+ if ($partdata->{'Survey'}) {
+ if ($granularity eq 'part_survey'){
+ push (@Resource,
+ { symb => $res->{symb},
+ part => $part,
+ resource => $res,
+ } );
+ }
} elsif ($granularity eq 'part') {
push (@Resource,
{ symb => $res->{symb},