diff options
Diffstat (limited to 'lib/Travelynx/Model/Journeys.pm')
| -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");  			} | 
