diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-23 23:02:44 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-23 23:02:57 +0200 |
commit | 3389ca2bcf43bcb48c5c0120719f4c57c6dc2241 (patch) | |
tree | 53392355d9c94bb3ad9a0ada8e0f14f2dc1fa0e9 /lib/Travelynx/Controller/Traveling.pm | |
parent | 6c1cae86f4fa343b4f165f80a4e42eba37fa917c (diff) |
Fix checkin/checkout of cancelled journeys
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 73a079c..112fa80 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -160,8 +160,7 @@ sub log_action { } elsif ( $params->{action} eq 'cancelled_from' ) { my ( undef, $error ) - = $self->checkin( $params->{station}, $params->{train}, - $self->app->action_type->{cancelled_from} ); + = $self->checkin( $params->{station}, $params->{train} ); if ($error) { $self->render( @@ -182,8 +181,7 @@ sub log_action { } elsif ( $params->{action} eq 'cancelled_to' ) { my ( undef, $error ) - = $self->checkout( $params->{station}, 1, - $self->app->action_type->{cancelled_to} ); + = $self->checkout( $params->{station}, 1 ); if ($error) { $self->render( |