summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-27 13:55:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-27 13:55:51 +0100
commit23b538a847fbbc4f909369d30384bc2a461d865a (patch)
treed8947e9b3d2ad1a48707f6f7a59df358b46a29d8 /lib/DBInfoscreen
parentaa9e55128f287b2e264df22997ec282b13f16fbe (diff)
Fix input / station mapping in stationboard
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 169240d..d67a181 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -367,6 +367,10 @@ sub handle_request {
return;
}
+ # pre-fill station / train input form
+ $self->stash( input => $station );
+ $self->param( input => $station );
+
if ( $template eq 'json' ) {
$backend = 'iris';
$opt{lookahead} = 120;