strangerstudios / paid-memberships-pro

WordPress membership plugin to restrict access to content and charge recurring subscriptions using Stripe, PayPal, and more. Fully open source. 100% GPL.
https://www.paidmembershipspro.com
Other
460 stars 357 forks source link

Additional Roles removed when updating user from the Member Edit page. #2959

Open ipokkel opened 5 months ago

ipokkel commented 5 months ago

Describe the bug If a user has more than one role assigned the additional roles assigned to the user are removed when updating a user from the Member Edit page.

To Reproduce Steps to reproduce the behavior:

  1. Install PMPro Roles Add On.
  2. Create a level group that allows choosing multiple levels from the group and create two membership levels in this group.
  3. Check out as a test user for both of these levels and query the roles assigned to this user to confirm that the user has both membership-level roles assigned.
  4. Navigate to Memberships > Members and select to edit this member. Observe that only one of the roles is selected as the role for the user.
  5. Click on Update User Info and query the roles assigned to this user to confirm that the user now only has the role assigned that was selected in the User Info tab of the Edit Member page.

Expected behavior Additional user roles should remain assigned to a user when updating the member on the Member Edit page.

Isolating the problem (mark completed items with an [x]):

WordPress Environment

- WordPress 6.5.2
- Paid Memberships Pro 3.0.2

Moderators (only)

561648

MaximilianoRicoTabo commented 3 months ago

Same for this one, with commit below that make remove dropdown and make it a disabled component is this issue still valid ? https://github.com/strangerstudios/paid-memberships-pro/commit/64c4ee2f8f7e633134eb26b8a84dce468a17f65e