Browse Source

Merge pull request #6043 from tincdev/patch-1

Fix for [Form Validation] regression: get values with radio returns true or false #5713
pull/5603/merge
Jack Lukic 6 years ago
committed by GitHub
parent
commit
f36e81583f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions
  1. 7
      src/definitions/behaviors/form.js

7
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) {

Loading…
Cancel
Save