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