Skip to content

Commit

Permalink
Roll back previous change
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed May 14, 2020
1 parent e4385c0 commit f886837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Requests/AssetRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function rules()

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

Expand Down

0 comments on commit f886837

Please sign in to comment.