manual station entry: fix HAFAS redirect

This commit is contained in:
Birte Kristina Friesel 2023-08-26 09:15:33 +02:00
parent 072d19abbb
commit 559a1cedd7
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -1134,7 +1134,7 @@ sub redirect_to_station {
my $station = $self->param('station');
if ( my $s = $self->app->stations->search($station) ) {
if ( $s->{hafas} ) {
if ( $s->{source} == 1 ) {
$self->redirect_to("/s/${station}?hafas=1");
}
else {