Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid memberships when using the Restrict this page functionality #2727

Open
4 tasks
brianhogg opened this issue Aug 13, 2024 · 0 comments
Open
4 tasks

Invalid memberships when using the Restrict this page functionality #2727

brianhogg opened this issue Aug 13, 2024 · 0 comments
Assignees

Comments

@brianhogg
Copy link
Contributor

Reproduction Steps

  1. Create one or more memberships
  2. Create a new page or edit an existing page
  3. Turn on "Restrict this page" in the menu on the right
  4. Select one or more memberships in the select box
  5. Use the black "X" to remove memberships
  6. Save
  7. Select one membership
  8. Save again
  9. Refresh the page

Expected Behavior

Only the one membership is shown

Actual Behavior

Sometimes "None" shows as an option which then turns into " (ID#)" in the listing as a "phantom" membership. This can cause problems with restricting the access or showing an appropriate message when someone tries to access it who doesn't have access.

Restrict.Page.Membership.Selection.Bug.mov

Tech Notes

It looks like these entries are saved as "" (empty string) in the array of restricted IDs.

This issue has be recreated:

  • Locally
  • On a staging site
  • On a production website
  • With only LifterLMS and a default theme
@ideadude ideadude moved this to Awaiting Triage in Development Aug 13, 2024
@ideadude ideadude self-assigned this Aug 13, 2024
@brianhogg brianhogg assigned brianhogg and unassigned ideadude Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting Triage
Development

No branches or pull requests

2 participants