Skip to content

Commit

Permalink
Item9194: don't try to get field values unless the tom object is a topic
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@7908 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Jun 24, 2010
1 parent 3b6b0e9 commit ec9f2f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/Foswiki/Store/QueryAlgorithms/BruteForce.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ sub query {

# Eliminate static expressions
my $context = Foswiki::Meta->new( $session, $session->{webName} );
$query->simplify();
$query->simplify( tom => $context, data => $context );

my $webNames = $options->{web} || '';
my $recurse = $options->{'recurse'} || '';
Expand Down Expand Up @@ -262,7 +262,7 @@ sub getField {
# name anywhere in the saved fields of meta
return $data->web();
}
else {
elsif ($data->topic()) {

# The field name isn't an alias, check to see if it's
# the form name
Expand Down

0 comments on commit ec9f2f8

Please sign in to comment.