Loading lib/Travelynx/Controller/Traveling.pm +1 −0 Original line number Diff line number Diff line Loading @@ -2570,6 +2570,7 @@ sub edit_journey { $self->render( 'edit_journey', with_autocomplete => 1, backend_id => $journey->{backend_id}, error => $error, journey => $journey ); Loading lib/Travelynx/Model/Journeys.pm +4 −2 Original line number Diff line number Diff line Loading @@ -341,7 +341,8 @@ sub update { eval { if ( exists $opt{from_name} ) { my $from_station = $self->{stations}->search( $opt{from_name} ); my $from_station = $self->{stations} ->search( $opt{from_name}, backend_id => $journey->{backend_id} ); if ( not $from_station ) { die("Unbekannter Startbahnhof\n"); } Loading @@ -357,7 +358,8 @@ sub update { )->rows; } if ( exists $opt{to_name} ) { my $to_station = $self->{stations}->search( $opt{to_name} ); my $to_station = $self->{stations} ->search( $opt{to_name}, backend_id => $journey->{backend_id} ); if ( not $to_station ) { die("Unbekannter Zielbahnhof\n"); } Loading Loading
lib/Travelynx/Controller/Traveling.pm +1 −0 Original line number Diff line number Diff line Loading @@ -2570,6 +2570,7 @@ sub edit_journey { $self->render( 'edit_journey', with_autocomplete => 1, backend_id => $journey->{backend_id}, error => $error, journey => $journey ); Loading
lib/Travelynx/Model/Journeys.pm +4 −2 Original line number Diff line number Diff line Loading @@ -341,7 +341,8 @@ sub update { eval { if ( exists $opt{from_name} ) { my $from_station = $self->{stations}->search( $opt{from_name} ); my $from_station = $self->{stations} ->search( $opt{from_name}, backend_id => $journey->{backend_id} ); if ( not $from_station ) { die("Unbekannter Startbahnhof\n"); } Loading @@ -357,7 +358,8 @@ sub update { )->rows; } if ( exists $opt{to_name} ) { my $to_station = $self->{stations}->search( $opt{to_name} ); my $to_station = $self->{stations} ->search( $opt{to_name}, backend_id => $journey->{backend_id} ); if ( not $to_station ) { die("Unbekannter Zielbahnhof\n"); } Loading