fix for array fields validation in client-side framework
This commit is contained in:
parent
7b0531e0a0
commit
4025b4885b
|
|
@ -43,7 +43,7 @@
|
|||
$field
|
||||
|
||||
$.each(fields, function(fieldName, fieldMessages) {
|
||||
$field = $('[data-validate-for='+fieldName+']', $this)
|
||||
$field = $('[data-validate-for="'+fieldName+'"]', $this)
|
||||
messages = $.merge(messages, fieldMessages)
|
||||
if (!!$field.length) {
|
||||
if (!$field.text().length || $field.data('emptyMode') == true) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue