summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-04 08:49:57 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-04 08:49:57 +0200
commit0c5908e722a757ae86222df920cf0ceaf2bb6217 (patch)
tree29cf5e1e6c9df82472101901d95e060fc7f8a4a4 /lib/Travelynx/Model
parentaec37cce68ccc00a05b63035d8e89a8898d85646 (diff)
manual journey entry: hardcode DB (HAFAS) for station selection2.8.8
TODO: Add a dropdown to select different backends Closes #150
Diffstat (limited to 'lib/Travelynx/Model')
-rwxr-xr-xlib/Travelynx/Model/Journeys.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm
index e47df58..00f79b3 100755
--- a/lib/Travelynx/Model/Journeys.pm
+++ b/lib/Travelynx/Model/Journeys.pm
@@ -118,8 +118,10 @@ sub add {
my $db = $opt{db};
my $uid = $opt{uid};
my $now = DateTime->now( time_zone => 'Europe/Berlin' );
- my $dep_station = $self->{stations}->search( $opt{dep_station} );
- my $arr_station = $self->{stations}->search( $opt{arr_station} );
+ my $dep_station = $self->{stations}
+ ->search( $opt{dep_station}, backend_id => $opt{backend_id} );
+ my $arr_station = $self->{stations}
+ ->search( $opt{arr_station}, backend_id => $opt{backend_id} );
if ( not $dep_station ) {
return ( undef, 'Unbekannter Startbahnhof' );