fix: typo in xpath prevented parsing of selection groups

This commit is contained in:
Björn Fromme
2025-03-24 15:46:46 +01:00
parent cdf265795f
commit 1498bdb53b
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -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());
}
}
}
+1 -1
View File
@@ -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