Skip to content

Comments

Bug fix - fixed group member management errors with selecting new users, removing them, and updating the roles#608

Merged
Bionic711 merged 1 commit intomicrosoft:Developmentfrom
Xeelee33:bugfix/manage_group_errors
Jan 18, 2026
Merged

Bug fix - fixed group member management errors with selecting new users, removing them, and updating the roles#608
Bionic711 merged 1 commit intomicrosoft:Developmentfrom
Xeelee33:bugfix/manage_group_errors

Conversation

@Xeelee33
Copy link
Contributor

The functions in manage_groups.js are no longer global functions in the new version, so the actions fail in the manage group screen.

Trying to select a user after search results in this error where the fields do not populate (note, this works properly in public workspaces because those functions are still global functions).
image

Additionally, the Remove button does nothing when clicked, and attempting to update a member role also throws an error. The request approval/rejection workflow also needed to be fixed.

I updated the group member select code to more closely match the code in manage_public_workspace.js for consistency and moved the inline onclick handlers for the select-user-btn, remove-member-btn, change-role-btn, approve-request-btn, and reject-request-btn to event delegation blocks in the $(document).ready function.

After pushing this change, the updated buttons and functions work as expected.

…l, group member role update, and approve/reject request
@Bionic711 Bionic711 merged commit 7c04b7e into microsoft:Development Jan 18, 2026
1 check passed
const term = $("#userSearchTerm").val().trim();
if (!term) {
alert("Please enter a search term.");
alert("Enter a name or email to search.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Xeelee33 I approved the PR, but please update this away from alert() and into a toast or inline error/banner/etc.

Copy link
Collaborator

@Bionic711 Bionic711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved PR. Updates requested.

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.

2 participants