mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
[bug] unable to delete an unreserved event
This commit is contained in:
parent
3624bee057
commit
2da644ecd5
@ -4,6 +4,7 @@
|
||||
- Ability to define, per availability, a custom duration for the reservation slots
|
||||
- Fix a bug: unable to change group if the previous was deactivated
|
||||
- Fix a bug: unable to create events or trainings that are not multiples of SLOT_DURATION
|
||||
- Fix a bug: unable to delete an unreserved event
|
||||
|
||||
## v4.3.4 2020 April 14
|
||||
|
||||
|
@ -15,7 +15,7 @@ class EventPriceCategory < ApplicationRecord
|
||||
protected
|
||||
|
||||
def verify_no_associated_tickets
|
||||
throw(:abort) if tickets.count.zero?
|
||||
throw(:abort) unless tickets.count.zero?
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user