A free open source IT asset/license management system
Ensure asset name is maintained when importing assets that are checked out
Marcus Moorec80595e05caa
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.phpindex 19e8d850dc..bf47c73608 100644--- a/app/Importer/AssetImporter.php+++ b/app/Importer/AssetImporter.php@@ -137,7 +137,7 @@ class AssetImporter extends ItemImporter//-- user_id is a property of the abstract class Importer, which this class inherits from and it's setted by//-- the class that needs to use it (command importer or GUI importer inside the project).if (isset($target)) {- $asset->fresh()->checkOut($target, $this->user_id, date('Y-m-d H:i:s'));+ $asset->fresh()->checkOut($target, $this->user_id, date('Y-m-d H:i:s'), null, $asset->notes, $asset->name);}return;