The select_org LiveView event was updating default_organization_id in the database but not the session's current_organization_id. Since load_default_organization prioritizes the session value, users would always get redirected back to the stale org. Replaced with a controller POST action that updates both the session and DB default before redirecting. |
||
|---|---|---|
| .. | ||
| index.ex | ||
| index.html.heex | ||
| new.ex | ||
| new.html.heex | ||