diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/ContingentRepository.php b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/ContingentRepository.php index 0733894b..0e37ee94 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Repository/ContingentRepository.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Repository/ContingentRepository.php @@ -84,17 +84,15 @@ class ContingentRepository extends AbstractRepository implements ProviderInterfa $dates[$row['date']] = [ 'status' => Contingent::STATUS_OK, 'date' => $row['date'], - 'minPrice' => $row['minPrice'], - 'pax' => $row['pax'], - 'available' => $row['available'], + 'pax' => 0, + 'available' => 0, ]; - } else { - if ($row['status'] !== Contingent::STATUS_OK) { - $dates[$row['date']]['status'] = $row['status']; - } - $dates[$row['date']]['pax'] += $row['pax']; - $dates[$row['date']]['available'] += $row['available']; } + if ($row['status'] !== Contingent::STATUS_OK) { + $dates[$row['date']]['status'] = $row['status']; + } + $dates[$row['date']]['pax'] += $row['pax']; + $dates[$row['date']]['available'] += $row['available']; } $events = [];