From 559a1cedd7814d101743f718f1db2760338ab51f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 26 Aug 2023 09:15:33 +0200 Subject: manual station entry: fix HAFAS redirect --- lib/Travelynx/Controller/Traveling.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 251bc15..7ee04e0 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -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 { -- cgit v1.2.3