Include pacode in all ajax requests for price and date tables

This commit is contained in:
Björn Fromme
2022-09-27 16:42:04 +02:00
parent dd565bed4a
commit fa1097a83e
@@ -54,7 +54,12 @@ export default class extends Controller {
}
this.loadingValue = true
this.datesTableContainerTarget.innerHTML = ''
fetch(this.datestableUriValue)
let paCode = this.getConfig().paCode
const data = new URLSearchParams()
if (paCode) {
data.append('tx_epproducts_ajax[paCode]', paCode)
}
fetch(this.datestableUriValue, { method: 'POST', body: data })
.then(this.checkStatus)
.then(this.parseHTML)
.then(html => {