Skip to content
Permalink
Browse files

fix message

  • Loading branch information...
Graziel committed May 11, 2016
1 parent 6769a6c commit 76ec4e02158c84abc2bae062d584ec736650f2e5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Validation/Validator.php
@@ -527,7 +527,7 @@ public function allowEmpty($field, $when = true, $message = null)
$fieldName = current(array_keys($settings));
$this->field($fieldName)->isEmptyAllowed($settings[$fieldName]['when']);
if ($message) {
if ($settings[$fieldName]['message']) {
$this->_allowEmptyMessages[$fieldName] = $settings[$fieldName]['message'];
}
}

0 comments on commit 76ec4e0

Please sign in to comment.
You can’t perform that action at this time.