Skip to content

A free open source IT asset/license management system

Pint

snipe2b2291dc7e7b
diff --git a/app/Models/Asset.php b/app/Models/Asset.php
index a3f18b48e1..0280c60101 100644
--- a/app/Models/Asset.php
+++ b/app/Models/Asset.php
@@ -765,7 +765,6 @@ class Asset extends Depreciable
}
public function accessories()
-
{
return $this->morphMany(AccessoryCheckout::class, 'assigned', 'assigned_type', 'assigned_to');
@@ -777,12 +776,10 @@ class Asset extends Depreciable
// ->withPivot('id', 'assigned_qty', 'created_at', 'note', 'created_by');
}
-
// {
// return $this->morphMany(AccessoryCheckout::class, 'assigned', 'assigned_type', 'assigned_to')->withTrashed();
// }
-
/**
* Get the asset's location based on the assigned user
*