From afff7b2535b497132acdd5150f8c2327b8d2ca6e Mon Sep 17 00:00:00 2001 From: sraffalli Date: Tue, 19 Dec 2017 12:57:06 +0100 Subject: [PATCH] Fix for #5713 [Form Validation] regression: get values with radio returns true or false #5713 --- src/definitions/behaviors/form.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index c28c546d4..a754dc123 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -603,11 +603,8 @@ $.fn.form = function(parameters) { } else { if(isRadio) { - if(values[name] === undefined) { - values[name] = (isChecked) - ? true - : false - ; + if(values[name] === undefined || values[name] == false ) { + values[name] = (isChecked) ? value || true : false; } } else if(isCheckbox) {