summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traveling.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-07-26 15:36:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-07-26 15:36:45 +0200
commit52ff7565774049c6fa8189a36e40f8e01a6b2e71 (patch)
treef3b2338666527b6c7288ca444699d1bbf769eac8 /lib/Travelynx/Controller/Traveling.pm
parent1594ba93277825a02d1b989df2db34ae98a54429 (diff)
only show cancellation alternatives at original station
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm5
1 files changed, 4 insertions, 1 deletions
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}