From 492c5b6e17d709e2a58cc7595816a29c1b242033 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 9 Apr 2019 16:54:42 +0000 Subject: [PATCH] [FIX] survey: prefill checkboxes Oversight of 82d733d68cf4f51d4d237077bf739dca5fb9a350 See #32149 closes odoo/odoo#32557 Signed-off-by: Christophe Simonis --- addons/survey/static/src/js/survey.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/survey/static/src/js/survey.js b/addons/survey/static/src/js/survey.js index e8d4972abcd..8158ce75da5 100644 --- a/addons/survey/static/src/js/survey.js +++ b/addons/survey/static/src/js/survey.js @@ -97,6 +97,9 @@ if(!the_form.length) { } // checkboxes and radios + the_form.find("input[name^='" + key + "_'][type='checkbox']").each(function(){ + $(this).val(value); + }); the_form.find("input[name=" + key + "][type!='text']").each(function(){ $(this).val(value); });