Describe the bug
When a user has multiple roles and we attempt to remove a role, I’m getting an error message pop up and although the user UI appears to have removed the user they have not been removed officially. In the network developer tools i'm seeing this error message
"error": "The route publicknowledge\/api\/v1\/users\/2\/role\/8 could not be found.
Prereqs
Need to be using a journal manager or any user that can invite users.
Need to have another user with more than one role. You can add a role first to an existing user or already have a user with multiple roles
If you wish to see the network tab error then open up the dev tools -> network tab
Steps To Reproduce
Login to the account that can invite users
Select Settings from side navigation
Select Users & Roles
From the Users tab select Invite to a role button
Enter the user that has multiple roles into the username field
Select Search User button
Select Remove Role button Under the role table find the role you wish to remove
Select Yes from the Remove Role popup window
Actual result
Error message pop up, Network tab will display this "error": "The route publicknowledge\/api\/v1\/users\/2\/role\/8 could not be found but UI updates that the role was removed.
Expected Results
A success message pop up without any network errors and the UI updates that the role has been removed.
What application are you using?
OJS v3.5
Additional information
Additionally after the error occurs the UI updated that the role had been remove but if you navigated back to the invitation window the role for that user is still showing.
Bug from #9658
Describe the bug When a user has multiple roles and we attempt to remove a role, I’m getting an error message pop up and although the user UI appears to have removed the user they have not been removed officially. In the network developer tools i'm seeing this error message "error": "The route publicknowledge\/api\/v1\/users\/2\/role\/8 could not be found.
Prereqs Need to be using a journal manager or any user that can invite users. Need to have another user with more than one role. You can add a role first to an existing user or already have a user with multiple roles If you wish to see the network tab error then open up the dev tools -> network tab
Steps To Reproduce
Actual result Error message pop up, Network tab will display this "error": "The route publicknowledge\/api\/v1\/users\/2\/role\/8 could not be found but UI updates that the role was removed.
Expected Results A success message pop up without any network errors and the UI updates that the role has been removed.
What application are you using? OJS v3.5
Additional information Additionally after the error occurs the UI updated that the role had been remove but if you navigated back to the invitation window the role for that user is still showing. Bug from #9658