Update app/Importer/ItemImporter.php

Co-authored-by: Marcus Moore <contact@marcusmoore.io>
This commit is contained in:
snipe 2023-10-30 14:17:27 +00:00 committed by GitHub
parent 758d3aadb4
commit 316c90c144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,7 +372,7 @@ class ItemImporter extends Importer
if (empty($asset_statuslabel_name)) { if (empty($asset_statuslabel_name)) {
return null; return null;
} }
$status = Statuslabel::where(['name' => trim($asset_statuslabel_name]))->first(); $status = Statuslabel::where(['name' => trim($asset_statuslabel_name)])->first();
if ($status) { if ($status) {
$this->log('A matching Status '.$asset_statuslabel_name.' already exists'); $this->log('A matching Status '.$asset_statuslabel_name.' already exists');