Skip to content

Commit

Permalink
Item14376: subwebs weren't being processed
Browse files Browse the repository at this point in the history
  • Loading branch information
cdot committed Apr 23, 2017
1 parent cbba288 commit b5a81d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/Foswiki/Contrib/DBIStoreContrib.pm
Expand Up @@ -565,11 +565,10 @@ sub load {
while ( $wit->hasNext() ) {

my $w = ( $wo->web ? $wo->web . '/' : '' ) . $wit->next();
next unless !defined($wre) || $w =~ /^$wre$/;

# Load subweb
my $swo = Foswiki::Meta->load( $wo->session, $w );
load( $swo, $reload );
load( $swo, $wre, $tre, $reload );
}

# No topics at root level
Expand Down
Expand Up @@ -10,7 +10,7 @@ use Encode ();
use DBI qw(:sql_types);

use Foswiki::Contrib::DBIStoreContrib qw(NAME NUMBER STRING UNKNOWN
BOOLEAN SELECTOR VALUE TABLE PSEUDO_BOOL trace %TRACE expandIDs);
BOOLEAN SELECTOR VALUE TABLE PSEUDO_BOOL trace %TRACE expandIDs traceSQL);
use Foswiki::Contrib::DBIStoreContrib::Personality ();
our @ISA = ('Foswiki::Contrib::DBIStoreContrib::Personality');

Expand Down Expand Up @@ -103,7 +103,7 @@ sub sql {

if ( $TRACE{sql} ) {
my @c = caller;
$this->traceSQL( "$sql at $c[1]:$c[2]", @_ );
traceSQL( "$sql at $c[1]:$c[2]", @_ );
}

my $sth = $this->{dbh}->prepare($sql);
Expand Down

0 comments on commit b5a81d1

Please sign in to comment.