Updated string
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ef56f599d2
commit
d834ef5104
2 changed files with 4 additions and 2 deletions
|
@ -7,6 +7,7 @@ use Illuminate\Validation\Rule;
|
||||||
|
|
||||||
class StoreAssetModelRequest extends ImageUploadRequest
|
class StoreAssetModelRequest extends ImageUploadRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if the user is authorized to make this request.
|
* Determine if the user is authorized to make this request.
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +20,7 @@ class StoreAssetModelRequest extends ImageUploadRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->category_type = Category::find($this->category_id)->category_type;
|
$this->category_type = Category::find($this->category_id)->category_type;
|
||||||
|
|
||||||
$this->merge([
|
$this->merge([
|
||||||
'category_type' => $this->category_type,
|
'category_type' => $this->category_type,
|
||||||
]);
|
]);
|
||||||
|
@ -39,7 +41,7 @@ class StoreAssetModelRequest extends ImageUploadRequest
|
||||||
|
|
||||||
public function messages(): array
|
public function messages(): array
|
||||||
{
|
{
|
||||||
$messages = ['category_type.in' => 'The category must be an asset category, dummy.'];
|
$messages = ['category_type.in' => trans('admin/models/message.invalid_category_type')];
|
||||||
return $messages;
|
return $messages;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ return array(
|
||||||
'no_association' => 'WARNING! The asset model for this item is invalid or missing!',
|
'no_association' => 'WARNING! The asset model for this item is invalid or missing!',
|
||||||
'no_association_fix' => 'This will break things in weird and horrible ways. Edit this asset now to assign it a model.',
|
'no_association_fix' => 'This will break things in weird and horrible ways. Edit this asset now to assign it a model.',
|
||||||
'assoc_users' => 'This model is currently associated with one or more assets and cannot be deleted. Please delete the assets, and then try deleting again. ',
|
'assoc_users' => 'This model is currently associated with one or more assets and cannot be deleted. Please delete the assets, and then try deleting again. ',
|
||||||
|
'invalid_category_type' => 'The category must be an asset category.',
|
||||||
|
|
||||||
'create' => array(
|
'create' => array(
|
||||||
'error' => 'Model was not created, please try again.',
|
'error' => 'Model was not created, please try again.',
|
||||||
|
|
Loading…
Add table
Reference in a new issue