From f9d1c266ce0e34841a9ec48f516c3428b2951f91 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 16 Jul 2023 17:20:36 +0200 Subject: action#checkin: re-add auto checkout was removed from $self->checkin in 1074f248cc415a397f16d0328a8f45fa6a867513 --- lib/Travelynx/Controller/Traveling.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index fc59b68..48fa944 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -621,6 +621,14 @@ sub travel_action { if ( $params->{action} eq 'checkin' ) { + my $status = $self->get_user_status; + if ( $status->{checked_in} + and $status->{arr_eva} + and $status->{arrival_countdown} <= 0 ) + { + $self->checkout( station => $status->{arr_eva} ); + } + $self->render_later; $self->checkin_p( station => $params->{station}, -- cgit v1.2.3