Closed anchovy closed 1 year ago
Fixed for the next release. To get the fix early, change your verbb/events
requirement in composer.json
to:
"require": {
"verbb/events": "dev-craft-3 as 1.4.23",
"...": "..."
}
Then run composer update
.
Fixed in 1.4.24
Describe the bug
If you add a ticket by don't select a ticket type an Twig\Error\RuntimeError is thrown rather than a form error in line i.e. no price added.
Steps to reproduce
Add/Edit an event
Goto the tickets tab
Click 'Add Ticket'
Enter a price but don't select a ticket type
Save the form
A Error is thrown:
in /....../vendor/verbb/events/src/templates/_includes/ticket-row.htmlat line 97 instructions: 'Tickets will not be purchasable after this date.' | t('events'), id: 'availableTo', name: 'availableTo', value: ticket.availableTo ?? [], errors: ticket ? ticket.getErrors('availableTo'), }) }}
Craft CMS version
Craft Pro 3.7.55.3
Plugin version
1.4.23
Multi-site?
No
Additional context
As per not adding a price, I'd expect an inline error ie: