Skip to content

Commit

Permalink
Item9144: double iterator increment fails on windows - should fail on…
Browse files Browse the repository at this point in the history
… linux too but doesn't appear to?

git-svn-id: http://svn.foswiki.org/trunk@7727 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Jun 12, 2010
1 parent 0b5c46b commit 1140e9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/lib/Foswiki/Meta.pm
Expand Up @@ -2299,7 +2299,8 @@ See =getLease= for more details about Leases.

sub clearLease {
my $this = shift;
ASSERT( $this->{_web} && $this->{_topic}, 'this is not a topic object' )
ASSERT( $this->{_web} && $this->{_topic},
($this->{_web}||'undef').'.'.($this->{_topic}||'undef').' this is not a topic object' )
if DEBUG;
$this->{_session}->{store}->setLease($this);
}
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/UI/Rename.pm
Expand Up @@ -708,7 +708,7 @@ sub _releaseContents {
my $it = $webObject->eachTopic();
while ( $it->hasNext() ) {
my $topic = $it->next();
my $topicObject = Foswiki::Meta->new( $session, $web, $it->next() );
my $topicObject = Foswiki::Meta->new( $session, $web, $topic );
$topicObject->clearLease();
}
}
Expand Down

0 comments on commit 1140e9b

Please sign in to comment.