mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Updated string
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ef56f599d2
commit
d834ef5104
|
@ -7,6 +7,7 @@ use Illuminate\Validation\Rule;
|
|||
|
||||
class StoreAssetModelRequest extends ImageUploadRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* 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->merge([
|
||||
'category_type' => $this->category_type,
|
||||
]);
|
||||
|
@ -39,7 +41,7 @@ class StoreAssetModelRequest extends ImageUploadRequest
|
|||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ return array(
|
|||
'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.',
|
||||
'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(
|
||||
'error' => 'Model was not created, please try again.',
|
||||
|
|
Loading…
Reference in a new issue