Bug: Cancelling a page creation fails in a confusing way
When editing/previewing a new page, cancelling the edition redirects to the view, that prompts to re-create it
Test case
Try to go to
NonExistingPage, and cancel the edition
Environment
--
ColasNahaboo - 15 Sep 2005
Impact and Available Solutions
Follow up
Fix record
I patched a fix which seems to work well based on the code I did for the Delete case. (attached:
patch to lib/TWiki/UI/Save.pm for Cairo). On cancel either on edit or preview, one is redirected to the topic if it exists (with unlocking), or the parent if it exists, or the
WebHome topic as a last resort.
Discussion
As a code cleanup one may want to factorize the "redirect to parent till one exists" between this case and the Delete one (and others?).
I will of course have to incorporate it to Dakar, if needed,
--
ColasNahaboo - 15 Sep 2005
i've attached a Dakar version of this (still testing it, though); see also
Bugs:Item390
--
WillNorris - 15 Sep 2005