You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An organiser user admin is able to create a new sponsor page with 0 coaches or students assigned to it, even though this is not allowed and the page will 404 once created. If there are 0 students set, the field will be validated as correct in the input field (see screenshot attached). The students/coaches field is not marked as required in the UI with an asterisk even though it should be.
Given that an admin is on the 'New sponsor' page in the admin panel,
When the admin has not put any number of students or coaches,
Then the admin will be taken to a sponsorship page that gives a 404.
Screenshots 📷
Steps to fix 🛠
To do 📋
Claim this issue (comment below, or assign yourself if you are part of the codebar org)
Fork and clone the repository
Update the relevant files. Follow the steps to fix section in this issue.
Commit your changes as one commit. Use the title of this issue as your commit message
Submit a pull request
Mention this issue in the PR description by including it's number
Have your pull request reviewed & merged by a codebar team member
The text was updated successfully, but these errors were encountered:
So, is the solution make coach/student as required fields? sponsor.seats has a default value of 15 while sponsor.number_of_coaches has not and when the user fill with blank it comes with nil value causing the error. Do you think the best approach is to create a default value for number_of_coaches or just mark it as required in the view?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description of the issue 📄
An organiser user admin is able to create a new sponsor page with 0 coaches or students assigned to it, even though this is not allowed and the page will 404 once created. If there are 0 students set, the field will be validated as correct in the input field (see screenshot attached). The students/coaches field is not marked as required in the UI with an asterisk even though it should be.
Given that an admin is on the 'New sponsor' page in the admin panel,
When the admin has not put any number of students or coaches,
Then the admin will be taken to a sponsorship page that gives a 404.
Screenshots 📷
Steps to fix 🛠
To do 📋
The text was updated successfully, but these errors were encountered: