changeset 3304:db48ab0b2bf8

after edit, don't use backto if the page was saved
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 18 Mar 2008 18:46:51 +0100
parents b6681bd81cdb
children dc56d314cc92
files MoinMoin/action/edit.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/edit.py	Tue Mar 18 18:46:21 2008 +0100
+++ b/MoinMoin/action/edit.py	Tue Mar 18 18:46:51 2008 +0100
@@ -179,11 +179,7 @@
 
         # Send new page after save or after unsuccessful conflict merge.
         request.reset()
-        backto = request.form.get('backto', [None])[0]
-        if backto:
-            pg = Page(request, backto)
-        else:
-            pg = Page(request, pagename)
+        pg = Page(request, pagename)
 
         # sets revision number to default for further actions
         request.rev = 0