3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 13:45:51 +00:00

Roll back previous change

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2020-05-14 00:55:47 -07:00
parent e4385c0f8c
commit f88683766b

View File

@ -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'));