no link to created entity when no message is set stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 07 Jul 2009 14:29:09 +0200
branchstable
changeset 2315 a1849f3ef4af
parent 2314 d03429ad82b2
child 2319 654decb099e3
no link to created entity when no message is set
web/request.py
--- 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'))