Tags:
create new tag
, view all tags

Bug: Rename Kills Attachments and Forms

PeterThoeny pointed out that a renaming can cause the loss of attachments and form data.

Test case

  • Create topic TopicOne, with text TopicTwo
  • Create TopicTwo
  • Add form and/or attachment to TopicTwo
  • View TopicOne.
  • Select rename (via more)
  • Form and attachment data in TopicTwo lost

Fix record

In rename

Change line 188 from:

                next if( /^%META:TOPIC(INFO|MOVED)/ );

to:

           if( /^%META:TOPIC(INFO|MOVED)/ ) {
               $resultText .= "$_\n";
               next;
           }

Note that with the META:TOPICINFO line being lost, TWiki thought the pre meta format was being used and all meta data was swept away.

Environment

TWiki version: 01 Sep 2001
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- JohnTalintyre - 24 Sep 2001

Topic revision: r4 - 2005-02-15 - SamHasler
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.