summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traveling.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-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(