Merge pull request #2504 from serega-kasyanow/develop

Fix for array fields validation in client-side framework
This commit is contained in:
Samuel Georges 2016-11-23 07:52:04 +11:00 committed by GitHub
commit 751af523d0
1 changed files with 1 additions and 1 deletions

View File

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