Roll back previous change
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e4385c0f8c
commit
f88683766b
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue