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 History Action Size Date Who Comment
Unknown file formatpatch CreateCancelDoNotFail-Dakar.patch r1 manage 1.0 K 2005-09-15 - 20:38 WillNorris  
Unknown file formatpatch CreateCancelDoNotFail.patch r1 manage 1.5 K 2005-09-15 - 10:45 ColasNahaboo patch to lib/TWiki/UI/Save.pm, Cairo
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-09-16 - TWikiJanitor
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.