Commit 3389ca2b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix checkin/checkout of cancelled journeys

parent 6c1cae86
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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(