From 0c5908e722a757ae86222df920cf0ceaf2bb6217 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 4 Aug 2024 08:49:57 +0200 Subject: manual journey entry: hardcode DB (HAFAS) for station selection TODO: Add a dropdown to select different backends Closes #150 --- lib/Travelynx/Controller/Traveling.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Travelynx/Controller/Traveling.pm') 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); -- cgit v1.2.3