lifterlms
lifterlms copied to clipboard
Can't remove Membership setting when editing an access plan.
Reproduction Steps
- Edit a course.
- Add an access plan.
- Set the plan to require membership.
- Choose a membership.
- Save All Plans.
- Reload the page.
- Try to remove the membership by clicking the "x".
- Save All Plans.
- Re open the access plan and note the membership setting is still there.
This also happens for the the WooCommerce Product setting when using our integration plugin for WooCommerce. It may be happening for any dropdown or select2 type field that has a blank option.
Video of the error in action: https://share.zight.com/P8uzk2xp
Expected Behavior
The access plan should update to have the blank value. If a value is required, it should tell the user that the value is required before saving.
Actual Behavior
The plans save, but the membership value is not blanked out and so comes back with the last saved value.
This issue has be recreated:
- [x] Locally
- [x] On a staging site
- [ ] On a production website
- [x] With only LifterLMS and a default theme