Commit 119f0a6b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Do not show cancelled journeys without substitute in passengerrights list

parent 424897fc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 );
		}