From 0598d975dcdc2ec87b54733eece5796fdef3d5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 29 Jan 2019 09:12:49 +0000 Subject: [PATCH] [FIX] survey: fix prefill It seems page_id is now a string instead of an int. closes odoo/odoo#30639 --- addons/survey/controllers/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/survey/controllers/main.py b/addons/survey/controllers/main.py index 7fa4c42ee26..8111459f11d 100644 --- a/addons/survey/controllers/main.py +++ b/addons/survey/controllers/main.py @@ -225,6 +225,10 @@ class Survey(http.Controller): return {} survey_sudo, answer_sudo = access_data['survey_sudo'], access_data['answer_sudo'] + try: + page_id = int(page_id) + except: + page_id = None # Fetch previous answers if page_id: