diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-10-03 14:17:57 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-10-03 14:18:33 +0200 | 
| commit | 96dabc4c9433033fdc3e0df770f11379723baf40 (patch) | |
| tree | e3612340b9a27a706cf510107c2aeff8f1ee59e4 /lib/Travelynx/Model | |
| parent | 548f651c61a4baae1208f46a05a38de8972e4ec4 (diff) | |
edit journey: pass on backend ID for origin/destination changes2.17.8
Closes #322
Diffstat (limited to 'lib/Travelynx/Model')
| -rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index a6061e6..24b8fb8 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -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");  			} @@ -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");  			} | 
