diff --git a/app/views/api/reservations/show.json.jbuilder b/app/views/api/reservations/show.json.jbuilder index 652331eb7..1f36016a5 100644 --- a/app/views/api/reservations/show.json.jbuilder +++ b/app/views/api/reservations/show.json.jbuilder @@ -25,10 +25,13 @@ json.reservable do json.name @reservation.reservable.name end json.nb_reserve_places @reservation.nb_reserve_places -json.tickets reservation.tickets do |t| +json.tickets @reservation.tickets do |t| json.extract! t, :booked, :created_at - json.price_category do - json.extract! t.event_price_category.price_category, :id, :name + json.event_price_category do + json.extract! t.event_price_category, :id, :price_category_id + json.price_category do + json.extract! t.event_price_category.price_category, :id, :name + end end end json.created_at @reservation.created_at.iso8601