mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Updated count
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f984b45de2
commit
19bd99d159
|
@ -338,7 +338,7 @@ class Accessory extends SnipeModel
|
|||
*/
|
||||
public function numCheckedOut()
|
||||
{
|
||||
return $this->users_count ?? $this->users->count();
|
||||
return $this->users_count ?? $this->users()->count();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue