Skip to content

Commit

Permalink
Item11017: Redundant afterSaveHandler called before renaming; replace…
Browse files Browse the repository at this point in the history
… save with saveAs

git-svn-id: http://svn.foswiki.org/trunk@12261 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Aug 4, 2011
1 parent e5ab389 commit 2979ef5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/lib/Foswiki/Meta.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,11 @@ sub move {
by => $cUID,
}
);
$from->save(); # to save the metadata change
# save the metadata change without logging
$this->saveAs(
$this->{_web}, $this->{_topic},
dontlog => 1, # no statistics
);
$from->{_session}->{store}->moveTopic( $from, $to, $cUID );
$to->loadVersion();
ASSERT( defined($to) and defined( $to->{_loadedRev} ) ) if DEBUG;
Expand Down

0 comments on commit 2979ef5

Please sign in to comment.