Skip to content

A free open source IT asset/license management system

Fixed #18725 - scope by assetsForShow()

snipe8417007eb8fc
diff --git a/app/Models/Location.php b/app/Models/Location.php
index 91eb941704..954146a4ee 100755
--- a/app/Models/Location.php
+++ b/app/Models/Location.php
@@ -324,7 +324,7 @@ class Location extends SnipeModel
*/
public function assignedAssets()
{
- return $this->morphMany(Asset::class, 'assigned', 'assigned_type', 'assigned_to')->withTrashed();
+ return $this->morphMany(Asset::class, 'assigned', 'assigned_type', 'assigned_to')->AssetsForShow()->withTrashed();
}
/**