mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixes: issue #13073: deleted component addearing in asset component tab fixed
This commit is contained in:
parent
13e8f91a59
commit
1cdf089306
|
@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue