diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-11-27 21:09:49 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-11-27 21:09:49 +0100 |
commit | 119f0a6b7d92db63c4dbab3e65dda34285c007e0 (patch) | |
tree | 859e6e1f229e5c15ebfdc7b4ba5d65751b669ddb /lib/Travelynx/Controller/Passengerrights.pm | |
parent | 424897fcc377886d1dab2d2d1a2142a0d8c78faa (diff) |
Do not show cancelled journeys without substitute in passengerrights list1.10.6
Diffstat (limited to 'lib/Travelynx/Controller/Passengerrights.pm')
-rw-r--r-- | lib/Travelynx/Controller/Passengerrights.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Travelynx/Controller/Passengerrights.pm b/lib/Travelynx/Controller/Passengerrights.pm index ba299b1..7d9a00b 100644 --- a/lib/Travelynx/Controller/Passengerrights.pm +++ b/lib/Travelynx/Controller/Passengerrights.pm @@ -127,9 +127,9 @@ sub list_candidates { $journey->{cancelled} = 1; $self->mark_substitute_connection($journey); - if ( not $journey->{has_substitute} - or $journey->{to_substitute}->{rt_arr_ts} - $journey->{sched_arr_ts} - >= 3600 ) + if ( $journey->{has_substitute} + and $journey->{to_substitute}->{rt_arr_ts} + - $journey->{sched_arr_ts} >= 3600 ) { push( @journeys, $journey ); } |