Skip to content

Commit

Permalink
Merge pull request #6043 from tincdev/patch-1
Browse files Browse the repository at this point in the history
Fix for [Form Validation] regression: get values with radio returns true or false #5713
  • Loading branch information
jlukic authored Jan 29, 2018
2 parents 6547d62 + afff7b2 commit f36e815
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f36e815

Please sign in to comment.