From 1cdf08930692c9a64dd4b1aa646479dd36b3fed8 Mon Sep 17 00:00:00 2001 From: ak-piracha Date: Wed, 31 May 2023 00:11:11 +0930 Subject: [PATCH] Fixes: issue #13073: deleted component addearing in asset component tab fixed --- app/Models/Asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 42c97a5cd7..03fa8a4457 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -403,7 +403,7 @@ class Asset extends Depreciable */ public function components() { - return $this->belongsToMany('\App\Models\Component', 'components_assets', 'asset_id', 'component_id')->withPivot('id', 'assigned_qty', 'created_at')->withTrashed(); + return $this->belongsToMany('\App\Models\Component', 'components_assets', 'asset_id', 'component_id')->withPivot('id', 'assigned_qty', 'created_at'); }