summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-01-26 16:04:08 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-01-26 16:04:08 +0100
commitcc25a56864f3276e91b17e20de25652247c9d8e9 (patch)
treea0e90ebf70c7f6144984077e1092512a1e69d69d
parent21234707fcd880cf980de4d31cefe4af951644f0 (diff)
Api: Import: Set correct route key for add_journey
-rwxr-xr-xlib/Travelynx/Controller/Api.pm2
1 files changed, 1 insertions, 1 deletions
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} } ];
}