summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-26 09:15:33 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-26 09:15:33 +0200
commit559a1cedd7814d101743f718f1db2760338ab51f (patch)
tree2c7486ea5437361cc85b7dbfbe073ba9e0182ba1 /lib
parent072d19abbb981e49e27d13884283b4d6904a5705 (diff)
manual station entry: fix HAFAS redirect
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm2
1 files changed, 1 insertions, 1 deletions
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 {