B #323887 misleading message after hitting cancel form button stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Tue, 25 Aug 2009 23:23:30 +0200
branchstable
changeset 2998 da622f980470
parent 2997 cedc3ab1a1f5
child 2999 0bf6c52447d0
B #323887 misleading message after hitting cancel form button
web/views/editcontroller.py
--- a/web/views/editcontroller.py	Tue Aug 25 23:23:28 2009 +0200
+++ b/web/views/editcontroller.py	Tue Aug 25 23:23:30 2009 +0200
@@ -157,6 +157,7 @@
         errorurl = self.req.form.get('__errorurl')
         if errorurl:
             self.req.cancel_edition(errorurl)
+        self.req.message = self.req._('edit canceled')
         return self.reset()
 
     def _action_delete(self):