Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment