diff --git a/app/Traits/ClearsGlobalSearchCache.php b/app/Traits/ClearsGlobalSearchCache.php index 0bcc5d319..d1cd2c5f5 100644 --- a/app/Traits/ClearsGlobalSearchCache.php +++ b/app/Traits/ClearsGlobalSearchCache.php @@ -65,7 +65,7 @@ trait ClearsGlobalSearchCache { // For database models, team is accessed through environment.project.team if (method_exists($this, 'team')) { - $team = $this->team(); + $team = $this->team; if (filled($team)) { return is_object($team) ? $team->id : null; }