Merge branch 'hotfix/contingent-import-fix'

This commit is contained in:
Björn Fromme
2021-08-23 16:13:07 +02:00
@@ -206,7 +206,6 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac
$hotelData['busProId'] = (string) $xmlContingent['idbuspro'];
$hotelData['code'] = (string) $xmlContingent['code'];
$roomTypes = $this->parseRoomTypes($xmlContingent->unterbringungen);
if ($xmlContingent->idbuspro_kontingent_aus) {
$linkedProductId = (int)$xmlContingent->idbuspro_kontingent_aus;
@@ -219,6 +218,8 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac
return 0;
}
$roomTypes = $this->parseRoomTypes($xmlContingent->unterbringungen);
return $this->parseRooms($xmlContingent->kapazitaeten, $hotelData, $roomTypes);
}