Changeset 13795
- Timestamp:
- 01/23/12 14:45:26 (4 weeks ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
UnitTestContrib/test/unit/FoswikiTestCase.pm (modified) (1 diff)
-
core/lib/Foswiki/Meta.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/UnitTestContrib/test/unit/FoswikiTestCase.pm
r13703 r13795 741 741 $this->{request} = $this->{session}{request}; 742 742 ASSERT( defined $Foswiki::Plugins::SESSION ) if SINGLE_SINGLETONS; 743 ( $this->{test_topicObject} ) = 744 Foswiki::Func::readTopic( $this->{test_web}, $this->{test_topic} ); 743 if ($this->{test_web} && $this->{test_topic}) { 744 ( $this->{test_topicObject} ) = 745 Foswiki::Func::readTopic( $this->{test_web}, $this->{test_topic} ); 746 } 745 747 746 748 return $this->{session}; -
trunk/core/lib/Foswiki/Meta.pm
r13781 r13795 1247 1247 if ( defined $name ) { 1248 1248 1249 #this code presumes the _indices are there (Sven would like it to re-create when needed..) 1250 # Paul.H notes that we trip over this one when meta obj is unloaded (I think, see Item10927) 1251 ASSERT( defined( $this->{_indices} ) ) if DEBUG; 1252 my $indices = $this->{_indices}->{$type}; 1249 my $indices = $this->{_indices}; 1250 return undef unless defined $indices; 1251 $indices = $indices->{$type}; 1253 1252 return undef unless defined $indices; 1254 1253 return undef unless defined $indices->{$name};
Note: See TracChangeset
for help on using the changeset viewer.
