Skip to content

Organisers can create new Sponsors without adding in number of coaches/students but it will 404 #1794

@frontendfran

Description

@frontendfran

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 📷

Screenshot 2022-08-09 at 19 27 41

Screenshot 2022-08-09 at 19 40 05

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions