mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
(bug) broken daily view of the public agenda
When the daily view contains trainings or events, the agenda cannot be filled with the slots because of an 500 error
This commit is contained in:
parent
c6f0b69b2e
commit
9856450aac
@ -1,7 +1,9 @@
|
||||
# Changelog Fab-manager
|
||||
|
||||
- Fix a bug: unable to show the daily view of the public agenda, if it contains trainings or events
|
||||
|
||||
## v5.4.19 2022 September 13
|
||||
- Fix a bug: comput the wallet amount that can't apply coupon
|
||||
- Fix a bug: computing the wallet amount to debit ignores the applied coupon
|
||||
|
||||
## v5.4.18 2022 September 12
|
||||
|
||||
|
@ -49,10 +49,10 @@ json.array!(@availabilities) do |availability|
|
||||
json.borderColor space_slot_border_color(availability)
|
||||
when 'training'
|
||||
json.training_id availability.availability.trainings.first.id
|
||||
json.borderColor trainings_events_border_color(availability)
|
||||
json.borderColor trainings_events_border_color(availability.availability)
|
||||
when 'event'
|
||||
json.event_id availability.availability.event.id
|
||||
json.borderColor trainings_events_border_color(availability)
|
||||
json.borderColor trainings_events_border_color(availability.availability)
|
||||
else
|
||||
json.title 'Unknown slot'
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user