Merge pull request #17701 from FHenry/13.0_fix_formconfirm

fix: formconfim if type radio must be :checked to get correct value
This commit is contained in:
Laurent Destailleur 2021-05-25 20:03:10 +02:00 committed by GitHub
commit 80e77f597d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4889,7 +4889,7 @@ class Form
var more = "";
var inputvalue;
if ($("input[name=\'" + inputname + "\']").attr("type") == "radio") {
inputvalue = $("input[name=\'" + inputname + "\']").val();
inputvalue = $("input[name=\'" + inputname + "\']:checked").val();
} else {
if ($("#" + inputname).attr("type") == "checkbox") { more = ":checked"; }
inputvalue = $("#" + inputname + more).val();