From 119f0a6b7d92db63c4dbab3e65dda34285c007e0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 27 Nov 2019 21:09:49 +0100 Subject: Do not show cancelled journeys without substitute in passengerrights list --- lib/Travelynx/Controller/Passengerrights.pm | 6 +++--- 1 file 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 ); } -- cgit v1.2.3