From b70bc7661dec13b974c39b23a492422ce783afa0 Mon Sep 17 00:00:00 2001 From: Du Peng Date: Wed, 13 Sep 2023 15:59:53 +0200 Subject: [PATCH] (bug) cannot re-book event after cancel latest reservation --- app/frontend/src/javascript/controllers/events.js.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/frontend/src/javascript/controllers/events.js.erb b/app/frontend/src/javascript/controllers/events.js.erb index f4e92afe9..7c0eab0e7 100644 --- a/app/frontend/src/javascript/controllers/events.js.erb +++ b/app/frontend/src/javascript/controllers/events.js.erb @@ -459,6 +459,12 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', ' $scope.reservations[index].slots_reservations_attributes[0].canceled_at = new Date(); Event.get({ id: $scope.event.id }).$promise.then(function (event) { $scope.event = event; + getReservations($scope.event.id, 'Event', $scope.ctrl.member.id).then(function () { + updateNbReservePlaces(); + $scope.reserveSuccess = true; + $scope.coupon.applied = null; + }); + resetEventReserve(); }); }, function(error) { growl.warning(_t('app.public.events_show.cancellation_failed'));