From 181f96ad336f98259d15c95135804e0f4ddd2297 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 19 Jan 2023 12:35:44 -0800 Subject: [PATCH] Allow users to set a blank asset name during checkout --- app/Models/Asset.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 {