Skip to content

fix(teams): restore selectedGroup on circle/user_group routes to fix "Unable to create contact" error (#5257)#5377

Open
pallavibakale wants to merge 1 commit into
nextcloud:mainfrom
pallavibakale:fix/teams-new-contact-bug-5257
Open

fix(teams): restore selectedGroup on circle/user_group routes to fix "Unable to create contact" error (#5257)#5377
pallavibakale wants to merge 1 commit into
nextcloud:mainfrom
pallavibakale:fix/teams-new-contact-bug-5257

Conversation

@pallavibakale

Copy link
Copy Markdown

fix(teams): fix "Unable to create contact" error when a team is selected

RouterMixin.selectedGroup read only from $route.params.selectedGroup, which is absent on circle and user_group routes after a routing refactor that moved them to dedicated paths. This caused selectedGroup to be undefined on team routes, breaking isCirclesView (always false) and making newContact() fall through to a router.push with a missing required param.

Fix RouterMixin to derive selectedGroup from the route name when the param is absent. Update newContact() to check selectedCircle directly for the circle-specific event, extend the group-exclusion list to cover ROUTE_CIRCLE and ROUTE_USER_GROUP, and fall back to GROUP_ALL_CONTACTS when navigating from a user group view.

Fixes #5257

@pallavibakale pallavibakale changed the title fix(teams): restore selectedGroup on circle/user_group routes to fix … fix(teams): restore selectedGroup on circle/user_group routes to fix Unable to create contact" error (#5257) Jun 8, 2026
@pallavibakale pallavibakale changed the title fix(teams): restore selectedGroup on circle/user_group routes to fix Unable to create contact" error (#5257) fix(teams): restore selectedGroup on circle/user_group routes to fix "Unable to create contact" error (#5257) Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot add new contact when team is selected

1 participant