mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Roll back previous change
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e4385c0f8c
commit
f88683766b
|
@ -46,6 +46,8 @@ class AssetRequest extends Request
|
|||
|
||||
$settings = \App\Models\Setting::getSettings();
|
||||
|
||||
$rules['asset_tag'] = ($settings->auto_increment_assets == '1') ? 'max:255' : 'required';
|
||||
|
||||
if ($this->request->get('model_id') != '') {
|
||||
$model = AssetModel::find($this->request->get('model_id'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue