1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bug] unable to pay by card for events reservation (#229)

The setting online_payment_module was not requested by the router before loading the page, so it was always evaluated to false= online payment disabled
This commit is contained in:
Sylvain 2020-08-31 17:39:50 +02:00
parent 730ebb8742
commit 2083ce6778
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Changelog Fab-manager
- Fix a bug: unable to pay by card for events reservation
- Fix a bug: unable to run task find_incoherent_invoices
## v4.5.5 2020 August 26

View File

@ -550,7 +550,7 @@ angular.module('application.router', ['ui.router'])
resolve: {
eventPromise: ['Event', '$stateParams', function (Event, $stateParams) { return Event.get({ id: $stateParams.id }).$promise; }],
priceCategoriesPromise: ['PriceCategory', function (PriceCategory) { return PriceCategory.query().$promise; }],
settingsPromise: ['Setting', function (Setting) { return Setting.query({ names: "['booking_move_enable', 'booking_move_delay', 'booking_cancel_enable', 'booking_cancel_delay', 'event_explications_alert']" }).$promise; }]
settingsPromise: ['Setting', function (Setting) { return Setting.query({ names: "['booking_move_enable', 'booking_move_delay', 'booking_cancel_enable', 'booking_cancel_delay', 'event_explications_alert', 'online_payment_module']" }).$promise; }]
}
})