A free open source IT asset/license management system
Fixes #2404 Only update name of asset if it isn't null.
snipe44821b966733
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 79c61a6adc..25c7ba4343 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -98,7 +98,11 @@ class Asset extends Depreciable$this->last_checkout = $checkout_at;$this->assigneduser()->associate($user);- $this->name = $name;++ if($name != null)+ {+ $this->name = $name;+ }$settings = Setting::getSettings();