From cc25a56864f3276e91b17e20de25652247c9d8e9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 26 Jan 2020 16:04:08 +0100 Subject: [PATCH] Api: Import: Set correct route key for add_journey --- lib/Travelynx/Controller/Api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index 20817d9..8af57be 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -463,7 +463,7 @@ sub import_v1 { if ( $payload->{intermediateStops} and ref( $payload->{intermediateStops} ) eq 'ARRAY' ) { - $opt{intermediateStops} + $opt{route} = [ map { sanitize( q{}, $_ ) } @{ $payload->{intermediateStops} } ]; }