diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-11-18 21:00:24 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-11-18 21:02:57 +0100 |
commit | 13e59b3aa1504154a90619069c963301e322904a (patch) | |
tree | 83a8e98f631071d1b74672aed6afc7178e69aa27 /lib/Travelynx/Controller/Traveling.pm | |
parent | ff2a3afe34d47e3880c7a91e570dd0d3f4d75373 (diff) |
add journey: make realtime data optional (default to schedule data)1.10.1
Closes #25
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 3f6217b..f0f1879 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -800,6 +800,9 @@ sub add_journey_form { } } + $opt{rt_departure} //= $opt{sched_departure}; + $opt{rt_arrival} //= $opt{sched_arrival}; + for my $key (qw(dep_station arr_station cancelled comment)) { $opt{$key} = $self->param($key); } |