diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 266285677..f8e0cab31 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -316,14 +316,10 @@ class Asset extends Depreciable } $this->last_checkout = $checkout_at; + $this->name = $name; $this->assignedTo()->associate($target); - - if ($name != null) { - $this->name = $name; - } - if ($location != null) { $this->location_id = $location; } else {