Skip to content

Commit 8c89ae5

Browse files
committed
fixing issue posabsolute#611
1 parent b0d2ee5 commit 8c89ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.validationEngine.js

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@
824824
},
825825
_getCustomErrorMessage:function (field, classes, rule, options) {
826826
var custom_message = false;
827-
var validityProp = methods._validityProp[rule];
827+
var validityProp = /^custom\[.*\]$/.test(rule) ? methods._validityProp["custom"] : methods._validityProp[rule];
828828
// If there is a validityProp for this rule, check to see if the field has an attribute for it
829829
if (validityProp != undefined) {
830830
custom_message = field.attr("data-errormessage-"+validityProp);

0 commit comments

Comments
 (0)