summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm3
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);
}