-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
event-typesarea: event types, event-typesarea: event types, event-types🐛 bugSomething isn't workingSomething isn't working
Description
Issue Summary
Creating a new Event Type succeeds when the Title field contains only whitespace (e.g., " "). The value is not trimmed before validation, so an effectively empty title is accepted. This leads to Event Types with blank titles in the UI and database.
Steps to Reproduce
- Log In
- Go to Event Types
- Click on "Create"
- Add a whitespace in the "Title" field
- Enter a slug in the "URL" field
- Click "Continue"
- A new Event Type is created successfully
This is considered a bug because an event type title should not be empty, but the code is not enforcing the title to be trimmed first.
Actual Results
- When entering a new event type, it is successfully saving when the user enters a whitespace into the title field
Expected Results
- When entering a new event type, if the user enters a whitespace into the title field, the system should display an error saying that "At least 1 character is required".
Technical details
- Node.js version - v20.18.1
Evidence
- This was tested locally but is also replicating on the cloud version.
- https://app.birdeatsbug.com/FyLBcHxQKiGxsxz5hNF1cY1THIdJhDLZ14js-InEZ2LX
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
event-typesarea: event types, event-typesarea: event types, event-types🐛 bugSomething isn't workingSomething isn't working