mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Removed debugging
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
559f0d2f90
commit
3ae4a5caf0
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue