summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
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/Controller
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/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 7fbde79..3151d42 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -2114,8 +2114,9 @@ sub add_journey_form {
my $db = $self->pg->db;
my $tx = $db->begin;
- $opt{db} = $db;
- $opt{uid} = $self->current_user->{id};
+ $opt{db} = $db;
+ $opt{uid} = $self->current_user->{id};
+ $opt{backend_id} = 1;
my ( $journey_id, $error ) = $self->journeys->add(%opt);