1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-22 11:52:21 +01:00

Merge branch 'family_compte_pre_inscription' into staging

This commit is contained in:
Du Peng 2023-09-13 16:01:35 +02:00
commit 881452dcd7

View File

@ -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'));