diff --git a/CHANGELOG.md b/CHANGELOG.md index 696afc150..5fe0f8944 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Updated user's manual for v5 - Fix a bug: unable to process stripe payments with 3DS authentication +- Fix a bug: unable to book an event ## v5.0.2 2021 June 11 diff --git a/app/frontend/src/javascript/controllers/events.js.erb b/app/frontend/src/javascript/controllers/events.js.erb index 3f9d0a54d..d25b27740 100644 --- a/app/frontend/src/javascript/controllers/events.js.erb +++ b/app/frontend/src/javascript/controllers/events.js.erb @@ -633,7 +633,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', ' * Create a hash map implementing the Reservation specs * @param reserve {Object} Reservation parameters (places...) * @param event {Object} Current event - * @return {{reservable_id:number, reservable_type:string, slots_attributes:Array, nb_reserve_places:number}} + * @return {{reservation: {reservable_id:number, reservable_type:string, slots_attributes:Array, nb_reserve_places:number}}} */ const mkReservation = function (reserve, event) { const reservation = { @@ -661,7 +661,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', ' } } - return reservation; + return { reservation }; }; /**