fix: typo in xpath prevented parsing of selection groups
This commit is contained in:
@@ -13,9 +13,13 @@ class CrmSelectionGroup
|
||||
*/
|
||||
public static array $includedServicesMapping = [
|
||||
7 => 'Skipass',
|
||||
8 => 'Sonstige',
|
||||
71 => 'Verpflegung',
|
||||
85 => 'Übernachtungen',
|
||||
74 => 'Unterkünfte',
|
||||
85 => 'Übernachtung',
|
||||
86 => 'Programm',
|
||||
88 => 'Personal',
|
||||
90 => 'Transport',
|
||||
];
|
||||
|
||||
#[Groups(['api:single'])]
|
||||
@@ -39,4 +43,4 @@ class CrmSelectionGroup
|
||||
{
|
||||
return 0 < count($this->getMutableSelections());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ class TravelLoader extends AbstractLoader
|
||||
$travel->code = $node->attr('code');
|
||||
$travel->type = $node->attr('reiseart');
|
||||
$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
|
||||
->getAdditionalServices($node->filterXPath('//lei_sonstiges/leistung'));
|
||||
$travel->transportationServices = $this
|
||||
|
||||
Reference in New Issue
Block a user