Skip to content

Commit

Permalink
Item2299: Refresh meta topic object after move
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@5394 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Oct 29, 2009
1 parent d85ff1b commit 0c071a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Meta.pm
Expand Up @@ -703,7 +703,7 @@ sub reload {
$this->{FILEATTACHMENT} = [];
$this->{_loadedRev} = $this->{_session}->{store}->readTopic( $this, $rev );

# SMELL: removed see getLoadedRevision - should remove any
# SMELL: removed see getLoadedRev - should remove any
# non-numeric rev's (like the $rev stuff from svn)
$this->{_preferences}->finish() if defined $this->{_preferences};
$this->{_preferences} = undef;
Expand Down
4 changes: 4 additions & 0 deletions core/lib/Foswiki/UI/Rename.pm
Expand Up @@ -764,6 +764,10 @@ sub _moveTopicOrAttachment {
);
};

# Force reload of new object, as it's been moved
delete $to->{_loadedRev};
$to->reload;

if ( $from->web ne $to->web ) {

# If the web changed, replace local refs to the topics
Expand Down

0 comments on commit 0c071a6

Please sign in to comment.