On Mar 22, 2007, at 8:24 PM, Thomas Kliethermes wrote:
Hi, I may have run into a renameDocument problem with backlinks.
I have a link to Main.a on Main.WebHome, and I rename document
Main.a to Main.b, the link on Main.WebHome is properly updated to
point to Main.b.
But, if I then further rename Main.b to Main.c, the link on
Main.WebHome is not re-updated to point to Main.c.
However, if I edit and save Main.WebHome between the two renames,
it does update the backlink the second time.
I think it's because XWikiDocument.renameDocument does not save()
the backlinkDocument (or I'm doing something completely wrong).
Thanks Thomas. Could you please create a jira issue for this. This
looks important to be fixed in b6 which is supposed to be delivered
on next Monday... :)
Thanks
-Vincent
Other than that Document.renameDocument seems to work great!
Thanks,
-Tom