stephenjude/filament-jetstream

[Bug]: current_team_id not updated when tenant is changed (Team functionality)

Closed this issue · 0 comments

What happened?

When swichting a team, the column current_team_id is not updated inside the users table for the currently logged in user.

How to reproduce the bug

  • Create 2 teams.
  • Check the users table. Find and note down the value for the current users current_team_id column.
  • Switch to another team using the dropdown provided by filament tenancy.
  • Check the users table again. The value for the current users current_team_id column wasn't changed.

Package Version

0.0.9

PHP Version

8.2

Laravel Version

11.0.6

Which operating systems does with happen with?

macOS, Linux

Notes

There is an event that's being dispatched when switching tenants that we can listen for.
I'll create a PR that contains the necessary changes so it can be merged and fix this bug.