PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | admin/helpers/src/model/quote.php +5 -3 1.8.10 → 1.8.16 View file →
@@ -394,13 +394,15 @@
394 394
395 395 // access booking registry for the first related booking (if any)
396 396 $bookingRegistry = $bookingIds ? VBOBookingRegistry::getInstance(['id' => $bookingIds[0] ?? 0]) : null;
397 397
398 + // get booking language
399 + $lang = $bookingRegistry->getProperty('lang');
400 +
398 401 // route quote URI
399 402 $quoteUri = VikBooking::externalroute(
400 - "index.php?option=com_vikbooking&view=quote&ref={$quote->uuid}",
401 - false,
402 - (VikBooking::findProperItemIdType(['quote'], $bookingRegistry->getProperty('lang') ?: null) ?: null)
403 + "index.php?option=com_vikbooking&view=quote&ref={$quote->uuid}" . ($lang ? "&lang={$lang}" : ''),
404 + false
403 405 );
404 406
405 407 // build the list of known tag parameters
406 408 $tagParameters = [