1. edit a topic
  2. save it
  3. rename the topic
  4. edits gone ... an old version is been restored

Can anybody confirm?

-- MichaelDaum - 27 Oct 2009

Confirmed on trunk frown

  1. Create a topic in sandbox & save (-> r1)
  2. Edit and save (force new version -> r2)
  3. Edit and save (force new version -> r3)
  4. Rename (-> r3)
  5. r3 now shows content from r1 instead of r2.

Unable to replicate on release branch. I have r5389 checked out.

-- PaulHarvey - 29 Oct 2009

Added unit test, also on release branch, even though the problem does not exist there.

Oh, and fixed the bug. Problem was that we:
  1. Load a dummy topicObject with no content for the new topic
  2. Move the old topic to the new topic
  3. Try to use the dumy topic object, thinking it will magically be updated

And just adding a $to->reload is not enough as there is already a cached version of this dummy topic, therefore $to->{_loadedRev} exists and is set to revision 1, therefore, it will always use revision 1. Fix by:
  1. Removing $to->{_loadedRev}
  2. Calling $to->reload

-- OlivierRaginel - 29 Oct 2009

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads