mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(mvc) no validation message on valid data
This commit is contained in:
parent
ac196fb326
commit
95b5c23723
@ -108,7 +108,10 @@ class NetworkValidator extends Validator implements ValidatorInterface
|
||||
$result = false;
|
||||
}
|
||||
|
||||
$validator->appendMessage(new Message($msg, $attribute, 'NetworkValidator'));
|
||||
if (!$result) {
|
||||
// append validation message
|
||||
$validator->appendMessage(new Message($msg, $attribute, 'NetworkValidator'));
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user