From 82d733d68cf4f51d4d237077bf739dca5fb9a350 Mon Sep 17 00:00:00 2001 From: jev-odoo Date: Wed, 27 Mar 2019 09:53:32 +0000 Subject: [PATCH] [FIX] survey: incorrect selector The jQuery selector is slightly too permissive, and therefore incorrect elements may be matched. See opw for example. Co-authored-by: Nicolas Martinelli opw-1947698 closes odoo/odoo#32149 Signed-off-by: Nicolas Martinelli (nim) --- addons/survey/static/src/js/survey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/static/src/js/survey.js b/addons/survey/static/src/js/survey.js index f2d5e50fbbe..e8d4972abcd 100644 --- a/addons/survey/static/src/js/survey.js +++ b/addons/survey/static/src/js/survey.js @@ -97,7 +97,7 @@ if(!the_form.length) { } // checkboxes and radios - the_form.find("input[name^=" + key + "][type!='text']").each(function(){ + the_form.find("input[name=" + key + "][type!='text']").each(function(){ $(this).val(value); }); });