Skip to content
Permalink
Browse files

Item11017: Redundant afterSaveHandler called before renaming; replace…

… save with saveAs

git-svn-id: http://svn.foswiki.org/branches/Release01x01@12260 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
ArthurClemens ArthurClemens
ArthurClemens authored and ArthurClemens committed Aug 4, 2011
1 parent ce0f8e7 commit c979cf1a1c4239d06a9f4682e59227a5675a91bc
Showing with 6 additions and 2 deletions.
  1. +6 −2 core/lib/Foswiki/Meta.pm
@@ -1874,7 +1874,7 @@ sub save {

my $pretext = $text; # text before the handler modifies it
my $premeta = $this->stringify(); # just the meta, no text

print STDERR "call beforeSaveHandler\n";
$plugins->dispatch( 'beforeSaveHandler', $text, $this->{_topic},
$this->{_web}, $this );

@@ -2164,7 +2164,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();
}

0 comments on commit c979cf1

Please sign in to comment.
You can’t perform that action at this time.