[form controller] clear caches in case some attribute participating to the rest path has been modified, avoid redirection to a no more existant page (fix #753567)
--- a/web/controller.py Fri Mar 26 13:33:47 2010 +0100
+++ b/web/controller.py Fri Mar 26 13:45:21 2010 +0100
@@ -136,6 +136,9 @@
params.update(newparams)
newparams = params
elif self._edited_entity:
+ # clear caches in case some attribute participating to the rest path
+ # has been modified
+ self._edited_entity.clear_all_caches()
path = self._edited_entity.rest_path()
else:
path = 'view'