From 95478a7caf4da502ffa7ff3b1d246ab084a10bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 11 Oct 2024 16:57:34 +0200 Subject: [PATCH] fix: provide required partner id when fetching contingents --- .../Resources/Private/Assets/js/myep/BookingEdit.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue index 6e434b61..8ef86772 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue @@ -275,7 +275,7 @@ const options = { ...defaultOptions } - return fetch(`${this.config.myEpApiBaseUrl}/api/mutable-fields/${this.travelData.busproId}`, options) + return fetch(`${this.config.myEpApiBaseUrl}/api/mutable-fields/${this.bookingData.travelId}`, options) .then(checkStatus) .then(response => response.json()) .then(data => { @@ -293,7 +293,7 @@ const options = { ...defaultOptions } - return fetch(`${this.config.myEpApiBaseUrl}/api/contingents/${this.travelData.busproId}`, options) + return fetch(`${this.config.myEpApiBaseUrl}/api/contingents/${this.bookingData.travelId}/${this.bookingData.partnerId}`, options) .then(checkStatus) .then(response => response.json()) .then(data => { @@ -311,7 +311,7 @@ const options = { ...defaultOptions } - return fetch(`${this.config.myEpApiBaseUrl}/api/services/${this.travelData.busproId}`, options) + return fetch(`${this.config.myEpApiBaseUrl}/api/services/${this.bookingData.travelId}`, options) .then(checkStatus) .then(response => response.json()) .then(data => {