Fix checkin/checkout of cancelled journeys
This commit is contained in:
parent
6c1cae86f4
commit
3389ca2bcf
1 changed files with 2 additions and 4 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue