Steps to replicate the issue (include links if applicable):
- Create an event with no P&E Dashboard course attached
- By querying the database directly, add a non-existing P&E Dashboard course to the event you just created (e.g., use gibberish as course name)
- I think the bug may also be reproducible by deleting the course in the Dashboard, but I haven't tested that.
- Go to Special:EditEventRegistration for that event
- Replace the non-existing course with one that exists
- Submit the form
What happens?:
You see the following error:
The course <name of the nonexisting course you entered in the DB> does not exist in the Programs & Events Dashboard.
And you cannot submit the form.
What should have happened instead?:
The submission should still go through because the non-existing course is being removed, so we don't really need to check if it exists.
Software version (skip for WMF-hosted wikis like Wikipedia): master
Other information (browser name/version, screenshots, etc.): ∅