Skip to content

A free open source IT asset/license management system

Pint

snipe5ef9798c68b4
diff --git a/app/Models/Location.php b/app/Models/Location.php
index ef3a2e6a0a..638fb5d4e7 100755
--- a/app/Models/Location.php
+++ b/app/Models/Location.php
@@ -182,7 +182,7 @@ class Location extends SnipeModel
public function countAllTheThings()
{
- return ($this->assets()->count() + $this->consumables()->count() + $this->components()->count() + $this->users()->count() + $this->assignedAccessories()->count() + $this->assignedAssets()->count() + $this->accessories()->count());
+ return $this->assets()->count() + $this->consumables()->count() + $this->components()->count() + $this->users()->count() + $this->assignedAccessories()->count() + $this->assignedAssets()->count() + $this->accessories()->count();
}
/**