[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 <nim@odoo.com>

opw-1947698

closes odoo/odoo#32149

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
jev-odoo
2019-04-03 13:41:57 +00:00
committed by Nicolas Martinelli
co-authored by Nicolas Martinelli
parent b9f2d8f3f4
commit 82d733d68c
+1 -1
View File
@@ -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);
});
});