Fix checkin/checkout of cancelled journeys

This commit is contained in:
Daniel Friesel 2019-04-23 23:02:44 +02:00
parent 6c1cae86f4
commit 3389ca2bcf

View file

@ -160,8 +160,7 @@ sub log_action {
} }
elsif ( $params->{action} eq 'cancelled_from' ) { elsif ( $params->{action} eq 'cancelled_from' ) {
my ( undef, $error ) my ( undef, $error )
= $self->checkin( $params->{station}, $params->{train}, = $self->checkin( $params->{station}, $params->{train} );
$self->app->action_type->{cancelled_from} );
if ($error) { if ($error) {
$self->render( $self->render(
@ -182,8 +181,7 @@ sub log_action {
} }
elsif ( $params->{action} eq 'cancelled_to' ) { elsif ( $params->{action} eq 'cancelled_to' ) {
my ( undef, $error ) my ( undef, $error )
= $self->checkout( $params->{station}, 1, = $self->checkout( $params->{station}, 1 );
$self->app->action_type->{cancelled_to} );
if ($error) { if ($error) {
$self->render( $self->render(