This commit is contained in:
Maxime Renou 2019-03-01 16:13:49 +01:00
parent a4120bbc60
commit 2b4f9d968c
1 changed files with 2 additions and 2 deletions

View File

@ -87,13 +87,13 @@ class Validator
foreach ($this->errors as $field => $field_errors)
{
$errors[$field] = [
'error' => "validator.".$field_errors[0].(!is_null($this->context) ? ':'.$this->context : '')
'error' => "validator.".$field_errors[0].':'.$field.(!is_null($this->context) ? ':'.$this->context : '')
];
}
$data = array_merge([
'message' => 'Please check your input',
'error' => 'validator.form-error',
'error' => "validator.form-error".(!is_null($this->context) ? ':'.$this->context : ''),
'errors' => $errors
], $data);