mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Added missing translation string
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
c575798b56
commit
9c63f426d9
|
@ -49,7 +49,7 @@ class ItemImportRequest extends FormRequest
|
||||||
$errorMessage = null;
|
$errorMessage = null;
|
||||||
|
|
||||||
if (is_null($fieldValue)) {
|
if (is_null($fieldValue)) {
|
||||||
$errorMessage = trans('validation.import_field_empty');
|
$errorMessage = trans('validation.import_field_empty', ['fieldname' => $field]);
|
||||||
$this->errorCallback($import, $field, $errorMessage);
|
$this->errorCallback($import, $field, $errorMessage);
|
||||||
|
|
||||||
return $this->errors;
|
return $this->errors;
|
||||||
|
|
|
@ -43,6 +43,7 @@ return [
|
||||||
'file' => 'The :attribute must be a file.',
|
'file' => 'The :attribute must be a file.',
|
||||||
'filled' => 'The :attribute field must have a value.',
|
'filled' => 'The :attribute field must have a value.',
|
||||||
'image' => 'The :attribute must be an image.',
|
'image' => 'The :attribute must be an image.',
|
||||||
|
'import_field_empty' => 'The value for :fieldname cannot be null.',
|
||||||
'in' => 'The selected :attribute is invalid.',
|
'in' => 'The selected :attribute is invalid.',
|
||||||
'in_array' => 'The :attribute field does not exist in :other.',
|
'in_array' => 'The :attribute field does not exist in :other.',
|
||||||
'integer' => 'The :attribute must be an integer.',
|
'integer' => 'The :attribute must be an integer.',
|
||||||
|
|
Loading…
Reference in a new issue