diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 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();