From 3ae4a5caf02480c90a229552faed70c2db0dc92e Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 16 Aug 2024 22:53:27 +0100 Subject: [PATCH] Removed debugging Signed-off-by: snipe --- app/Importer/AssetImporter.php | 2 +- app/Importer/ItemImporter.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.php index 4f5bffc560..781a6311fe 100644 --- a/app/Importer/AssetImporter.php +++ b/app/Importer/AssetImporter.php @@ -71,7 +71,7 @@ class AssetImporter extends ItemImporter $asset = Asset::where(['asset_tag'=> (string) $asset_tag])->first(); if ($asset) { 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->addErrorToBag($asset, 'asset_tag', $exists_error); return $exists_error; diff --git a/app/Importer/ItemImporter.php b/app/Importer/ItemImporter.php index ed778f9a8c..540183053d 100644 --- a/app/Importer/ItemImporter.php +++ b/app/Importer/ItemImporter.php @@ -221,7 +221,6 @@ class ItemImporter extends Importer } $editingModel = $this->updating; - $this->log('SQL: '.$asset_model->toSql()); $asset_model = $asset_model->first(); $this->log('Name: '.$asset_model_name);