From 52ff7565774049c6fa8189a36e40f8e01a6b2e71 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 26 Jul 2022 15:36:45 +0200 Subject: only show cancellation alternatives at original station --- lib/Travelynx/Controller/Traveling.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index eb8a657..6a53fe0 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -645,7 +645,10 @@ sub station { } else { my $user = $self->get_user_status; - if ( $user->{cancellation} ) { + if ( $user->{cancellation} + and $status->{station_eva} eq + $user->{cancellation}{dep_eva} ) + { @connecting_trains = $self->get_connecting_trains( eva => $user->{cancellation}{dep_eva}, destination_name => $user->{cancellation}{arr_name} -- cgit v1.2.3