fix: typo in xpath prevented parsing of selection groups
This commit is contained in:
@@ -13,9 +13,13 @@ class CrmSelectionGroup
|
|||||||
*/
|
*/
|
||||||
public static array $includedServicesMapping = [
|
public static array $includedServicesMapping = [
|
||||||
7 => 'Skipass',
|
7 => 'Skipass',
|
||||||
|
8 => 'Sonstige',
|
||||||
71 => 'Verpflegung',
|
71 => 'Verpflegung',
|
||||||
85 => 'Übernachtungen',
|
74 => 'Unterkünfte',
|
||||||
|
85 => 'Übernachtung',
|
||||||
86 => 'Programm',
|
86 => 'Programm',
|
||||||
|
88 => 'Personal',
|
||||||
|
90 => 'Transport',
|
||||||
];
|
];
|
||||||
|
|
||||||
#[Groups(['api:single'])]
|
#[Groups(['api:single'])]
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ class TravelLoader extends AbstractLoader
|
|||||||
$travel->code = $node->attr('code');
|
$travel->code = $node->attr('code');
|
||||||
$travel->type = $node->attr('reiseart');
|
$travel->type = $node->attr('reiseart');
|
||||||
$travel->priceFrom = $this->stringToFloat($this->getStringOrNullValue($node->filterXPath('//abpreis')));
|
$travel->priceFrom = $this->stringToFloat($this->getStringOrNullValue($node->filterXPath('//abpreis')));
|
||||||
$travel->selectionGroups = $this->getSelectionGroups($node->filterXPath('//selektionsgruppe'));
|
$travel->selectionGroups = $this->getSelectionGroups($node->filterXPath('//selektiongruppe'));
|
||||||
$travel->additionalServices = $this
|
$travel->additionalServices = $this
|
||||||
->getAdditionalServices($node->filterXPath('//lei_sonstiges/leistung'));
|
->getAdditionalServices($node->filterXPath('//lei_sonstiges/leistung'));
|
||||||
$travel->transportationServices = $this
|
$travel->transportationServices = $this
|
||||||
|
|||||||
Reference in New Issue
Block a user