[FIX] web: saved_action must start at index 1
authorChristophe Simonis <chs@openerp.com>
Wed, 27 Feb 2013 17:28:29 +0000 (18:28 +0100)
committerChristophe Simonis <chs@openerp.com>
Wed, 27 Feb 2013 17:28:29 +0000 (18:28 +0100)
bzr revid: chs@openerp.com-20130227172829-zxksmvky3hwltt7l

addons/web/controllers/main.py

index 9fe38a9..247d6f5 100644 (file)
@@ -866,7 +866,7 @@ class Session(openerpweb.Controller):
         """
         saved_actions = req.httpsession.get('saved_actions')
         if not saved_actions:
-            saved_actions = {"next":0, "actions":{}}
+            saved_actions = {"next":1, "actions":{}}
             req.httpsession['saved_actions'] = saved_actions
         # we don't allow more than 10 stored actions
         if len(saved_actions["actions"]) >= 10: