Tags:
archive_me1Add my vote for this tag create new tag
, view all tags

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

TWiki version: TWikiRelease03Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- 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

 
Topic attachments
I Attachment Action Size Date Who Comment
elsepatch CreateCancelDoNotFail-Dakar.patch manage 1.0 K 2005-09-15 - 20:38 WillNorris  
elsepatch CreateCancelDoNotFail.patch manage 1.5 K 2005-09-15 - 10:45 ColasNahaboo patch to lib/TWiki/UI/Save.pm, Cairo
Topic revision: r5 - 2008-09-16 - 05:20:41 - TWikiJanitor
 

Codev

share: Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon
Twiki, Inc.
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2010 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.