Ensure pacode being appended to links in ajax generated tables
This commit is contained in:
@@ -94,10 +94,12 @@ class AjaxDateController extends ActionController
|
|||||||
/**
|
/**
|
||||||
* @param Product $product
|
* @param Product $product
|
||||||
* @param Hotel $hotel
|
* @param Hotel $hotel
|
||||||
|
* @param string $paCode
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
|
* @throws \Doctrine\DBAL\DBALException
|
||||||
*/
|
*/
|
||||||
public function datesAction(Product $product, Hotel $hotel = null)
|
public function datesAction(Product $product, Hotel $hotel = null, $paCode = null)
|
||||||
{
|
{
|
||||||
if ($hotel === null) {
|
if ($hotel === null) {
|
||||||
return json_encode([
|
return json_encode([
|
||||||
@@ -128,8 +130,6 @@ class AjaxDateController extends ActionController
|
|||||||
}
|
}
|
||||||
if ($reseller = $this->resellerDataService->getResellerForCurrentDomain()) {
|
if ($reseller = $this->resellerDataService->getResellerForCurrentDomain()) {
|
||||||
$paCode = $reseller['paCode'];
|
$paCode = $reseller['paCode'];
|
||||||
} else {
|
|
||||||
$paCode = null;
|
|
||||||
}
|
}
|
||||||
$datesTable = $this->dateService->getDatesTable([
|
$datesTable = $this->dateService->getDatesTable([
|
||||||
'product' => $product,
|
'product' => $product,
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ class AjaxTableController extends ActionController
|
|||||||
* @param Product $product
|
* @param Product $product
|
||||||
* @param Hotel $hotel
|
* @param Hotel $hotel
|
||||||
* @param Date $date
|
* @param Date $date
|
||||||
|
* @param string $paCode
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
* @throws \Doctrine\DBAL\DBALException
|
* @throws \Doctrine\DBAL\DBALException
|
||||||
@@ -93,16 +94,14 @@ class AjaxTableController extends ActionController
|
|||||||
(
|
(
|
||||||
Product $product,
|
Product $product,
|
||||||
Hotel $hotel,
|
Hotel $hotel,
|
||||||
Date $date = null
|
Date $date = null,
|
||||||
)
|
$paCode = null
|
||||||
{
|
) {
|
||||||
$forcedConceptUids = GeneralUtility::trimExplode(',', $this->settings['forcedConceptUids'], true);
|
$forcedConceptUids = GeneralUtility::trimExplode(',', $this->settings['forcedConceptUids'], true);
|
||||||
$filterSettings = $this->filterService->getDefaultFilterSettings($forcedConceptUids, false);
|
$filterSettings = $this->filterService->getDefaultFilterSettings($forcedConceptUids, false);
|
||||||
|
|
||||||
if ($reseller = $this->resellerDataService->getResellerForCurrentDomain()) {
|
if ($reseller = $this->resellerDataService->getResellerForCurrentDomain()) {
|
||||||
$paCode = $reseller['paCode'];
|
$paCode = $reseller['paCode'];
|
||||||
} else {
|
|
||||||
$paCode = null;
|
|
||||||
}
|
}
|
||||||
$priceTable = $this->dateService->getPriceTable([
|
$priceTable = $this->dateService->getPriceTable([
|
||||||
'product' => $product,
|
'product' => $product,
|
||||||
|
|||||||
+5
-1
@@ -93,7 +93,10 @@
|
|||||||
this.detailShow = false;
|
this.detailShow = false;
|
||||||
axios({
|
axios({
|
||||||
url: this.uris['dates'],
|
url: this.uris['dates'],
|
||||||
method: 'post'
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
paCode: this.$store.state.config.paCode
|
||||||
|
}
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
const json = response.data;
|
const json = response.data;
|
||||||
if (json.dates.length === 1) {
|
if (json.dates.length === 1) {
|
||||||
@@ -131,6 +134,7 @@
|
|||||||
this.detailShow = false;
|
this.detailShow = false;
|
||||||
let query = {};
|
let query = {};
|
||||||
query[this.argumentPrefix + '[date]'] = dateUid;
|
query[this.argumentPrefix + '[date]'] = dateUid;
|
||||||
|
query[this.argumentPrefix + '[paCode]'] = this.$store.state.config.paCode;
|
||||||
axios({
|
axios({
|
||||||
url: this.uris['pricetable'],
|
url: this.uris['pricetable'],
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|||||||
Reference in New Issue
Block a user