Removed debugging

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-16 22:53:27 +01:00
parent 559f0d2f90
commit 3ae4a5caf0
2 changed files with 1 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class AssetImporter extends ItemImporter
$asset = Asset::where(['asset_tag'=> (string) $asset_tag])->first(); $asset = Asset::where(['asset_tag'=> (string) $asset_tag])->first();
if ($asset) { if ($asset) {
if (! $this->updating) { if (! $this->updating) {
$exists_error = 'A matching Asset '.$asset_tag.' already exists'; $exists_error = trans('general.import_asset_tag_exists', ['asset_tag' => $asset_tag]);
$this->log($exists_error); $this->log($exists_error);
$this->addErrorToBag($asset, 'asset_tag', $exists_error); $this->addErrorToBag($asset, 'asset_tag', $exists_error);
return $exists_error; return $exists_error;

View file

@ -221,7 +221,6 @@ class ItemImporter extends Importer
} }
$editingModel = $this->updating; $editingModel = $this->updating;
$this->log('SQL: '.$asset_model->toSql());
$asset_model = $asset_model->first(); $asset_model = $asset_model->first();
$this->log('Name: '.$asset_model_name); $this->log('Name: '.$asset_model_name);