Merge pull request #18113 from aspangaro/13p10

Fix: formconfim if type radio must be :checked to get correct value
This commit is contained in:
Laurent Destailleur 2021-07-08 17:35:27 +02:00 committed by GitHub
commit c3bf4f4b7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4434,7 +4434,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();