summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-23 23:02:44 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-23 23:02:57 +0200
commit3389ca2bcf43bcb48c5c0120719f4c57c6dc2241 (patch)
tree53392355d9c94bb3ad9a0ada8e0f14f2dc1fa0e9 /lib
parent6c1cae86f4fa343b4f165f80a4e42eba37fa917c (diff)
Fix checkin/checkout of cancelled journeys
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm6
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(