verbb / events

Craft CMS Plugin for events management and ticketing.
Other
22 stars 13 forks source link

Uncaught error when saving an event with a ticket with empty fields #121

Closed MoritzLost closed 1 year ago

MoritzLost commented 1 year ago

Describe the bug

When an event is saved that includes a ticket row with an empty Ticket Type or Price field, you get an uncaught error with no opportunity to fix the issue:

variable-tickettype-does-not-exist

ticket-price-error

Instead of resulting in a server error, this should just show a validation error in the edit form, allowing the user to fix the issue.

Steps to reproduce

  1. Create a new event.
  2. In the Tickets tab, click on Add ticket.
  3. Leave the Ticket Type and/or Price fields empty and save the event.

Craft CMS version

4.3.10

Plugin version

2.0.0-beta.8

Multi-site?

No response

Additional context

No response

engram-design commented 1 year ago

Updated in 2.0.0-beta.9