fix: only use destination's pickup values

This commit is contained in:
Björn Fromme
2024-01-28 17:49:46 +01:00
parent 85200e2960
commit 75bd055474
18 changed files with 286 additions and 106 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ class AppRuntime implements RuntimeExtensionInterface
return 'nationality' === $property ? $country->getNationality() : $country->getName();
}
public function bpnPickupLabel(?int $id): string
public function bpnPickupLabel(?int $id): ?string
{
if (null === $id) {
return 'keine Busbegleitung';
@@ -59,7 +59,7 @@ class AppRuntime implements RuntimeExtensionInterface
$pickup = $this->pickups->get($id);
if (null === $pickup) {
return 'unbekannt';
return null;
}
return 'ab '.$pickup->getCity();