Api: Import: Set correct route key for add_journey

This commit is contained in:
Daniel Friesel 2020-01-26 16:04:08 +01:00
parent 21234707fc
commit cc25a56864

View file

@ -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} } ];
}