web/request.py
branchstable
changeset 2315 a1849f3ef4af
parent 2312 af4d8f75c5db
child 2476 1294a6bdf3bf
--- a/web/request.py	Tue Jul 07 13:37:24 2009 +0200
+++ b/web/request.py	Tue Jul 07 14:29:09 2009 +0200
@@ -153,7 +153,8 @@
             else:
                 self.form[k] = v
         # special key for created entity, added in controller's reset method
-        if '__createdpath' in params:
+        # if no message set, we don't want this neither
+        if '__createdpath' in params and self.message:
             self.message += ' (<a href="%s">%s</a>)' % (
                 self.build_url(params.pop('__createdpath')),
                 self._('click here to see created entity'))