Skip to content

Commit 7093fb1

Browse files
author
Cedric Dugas
committed
reverted a change that was breaking unrequired, thx to @intradat & @RonaldHummelink
1 parent 598cc56 commit 7093fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.validationEngine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@
575575
}
576576
}
577577
// If the rules required is not added, an empty field is not validated
578-
if(!required && field.val() == "" && !promptText) options.isError = false;
578+
if(!required && field.val() == "" && !errorMsg) options.isError = false;
579579

580580
// Hack for radio/checkbox group button, the validation go into the
581581
// first radio/checkbox of the group

0 commit comments

Comments
 (0)