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
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -46,6 +46,8 @@ class AssetRequest extends Request
$settings = \App\Models\Setting::getSettings(); $settings = \App\Models\Setting::getSettings();
$rules['asset_tag'] = ($settings->auto_increment_assets == '1') ? 'max:255' : 'required';
if ($this->request->get('model_id') != '') { if ($this->request->get('model_id') != '') {
$model = AssetModel::find($this->request->get('model_id')); $model = AssetModel::find($this->request->get('model_id'));