Tags:
create new tag
view all tags

Question

  • TWiki version: Feb 01 2003
  • Perl version: v5.6.1
  • Web server: Apache/1.3.22 (Unix) (Red-Hat/Linux)

  • Server OS: Red Hat 7.2
  • Web browser & version: IE 5.5 / Netscape 6
  • Client OS: Windows / Linux

I have discovered a strange bug. If you are renaming a topic , It will not update the any of META data on the topic that you are renaming.

Eg.

If you have a page Testtopic8

%META:FIELD{name="Name" title="Name" value="TestTopic8"}%
It will not change it . I have gone through the code that I think its because in rename it moves the topics and then updates all the references to it. If one of those reference is itself then it doesnt find the topic and ignores it.

I fixed it by adding the following line to rename

   if( ! $theAttachment ) {
        my @refs = findReferingPages( $oldWeb, $oldTopic );
#ADDED To fix rename bug   
   push(@refs,"local",$newTopic);

-- JohnClegg - 16 Jul 2003

Answer

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-01-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.