From 0e9a9d99a1cc7234f9bfb7ad3697fc58cef8cb2e Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 5 Sep 2023 18:12:38 +0200 Subject: Map: pass train_no to _map_infobox as well --- lib/DBInfoscreen/Controller/Map.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/DBInfoscreen') diff --git a/lib/DBInfoscreen/Controller/Map.pm b/lib/DBInfoscreen/Controller/Map.pm index 507aa43..93f2b49 100644 --- a/lib/DBInfoscreen/Controller/Map.pm +++ b/lib/DBInfoscreen/Controller/Map.pm @@ -485,6 +485,9 @@ sub ajax_route { name => $journey->route_end, ts => ( $journey->route )[-1]->{arr}, }, + train_no => $journey->number + ? ( $journey->type . ' ' . $journey->number ) + : undef, next_stop => $train_pos->{next_stop}, ); } -- cgit v1.2.3