Unverified Commit f9d1c266 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

action#checkin: re-add auto checkout

was removed from $self->checkin in 1074f248
parent 81fb9219
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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},