[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:
committed by
Nicolas Martinelli
co-authored by
Nicolas Martinelli
parent
b9f2d8f3f4
commit
82d733d68c
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user