Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty lineName on chekin via API #3184

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
2 changes: 1 addition & 1 deletion app/DataProviders/Bahn.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function fetchHafasTrip(string $tripID, string $lineName): Trip {
$category = $category->getHTT()->value;
}

$tripLineName = $cachedData['lineName'] ?? '';
$tripLineName = $cachedData['lineName'] ?? $lineName ?? '';

// get trip number from first stop
$tripNumber = isset($rawJourney['halte'][0]['nummer']) ? (int) $rawJourney['halte'][0]['nummer'] : 0;
Expand Down
Loading