Can’t add person to podcast without specifying a role
Describe the bug
On the “Manage persons” page of a podcast, I can’t add a person to the podcast (the form won’t submit when I click “Add person(s)”) if I don’t specify a role for that person, while the tooltip above the “Roles” field of the form indicates “You may select none, one or several roles for a person”. The emphasis mine, but in my case I need to select no specific role because the person I’m trying to add holds almost all the roles for this podcast, so it makes no sense to add them all individually.
Steps to reproduce
- Go to the admin page of a podcast
- Click “Manage persons” under the “Podcast dashboard” section on the sidebar
- Try to add one existing person to the podcast without specifying any role
Expected behavior
The person should be added successfully to the podcast without any specific role.
Actual behavior
Clicking the submit button of the form (“Add person(s)”) has no effect and the form won’t submit.
Context
- Castopod: 1.3.5
- Browser: Firefox 114.0
- Web server: I don’t know
- PHP version: 8.2
Possible fixes
If I understood well, this might be the code responsible for this form / action of adding persons to a podcast: https://code.castopod.org/adaures/castopod/-/blob/develop/modules/Admin/Controllers/PodcastPersonController.php