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

checkout_p: use checkin_station_id, not dep_eva (unset for web actions)

parent e84959d0
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1441,8 +1441,6 @@ sub startup {
			my ( $self, %opt ) = @_;

			my $station      = $opt{station};
			my $dep_eva      = $opt{dep_eva};
			my $arr_eva      = $opt{arr_eva};
			my $with_related = $opt{with_related} // 0;
			my $force        = $opt{force};
			my $uid          = $opt{uid} // $self->current_user->{id};
@@ -1451,6 +1449,10 @@ sub startup {
			my $train_id     = $user->{train_id};
			my $hafas        = $opt{hafas};

			# only set when called via work.pm
			my $dep_eva = $opt{dep_eva};
			my $arr_eva = $opt{arr_eva};

			my $promise = Mojo::Promise->new;

			if ( not $station ) {
@@ -1723,7 +1725,8 @@ sub startup {
							train_no   => $train->train_no
						);
						$self->add_stationinfo( $uid, 0, $train->train_id,
							$dep_eva, $new_checkout_station_id );
							$journey->{checkin_station_id},
							$new_checkout_station_id );
					}
					$promise->resolve( 1, undef );
					return;