summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2023-09-05 18:12:38 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2023-09-05 18:12:38 +0200
commit0e9a9d99a1cc7234f9bfb7ad3697fc58cef8cb2e (patch)
treeca5903e072606ed033724306b393b4b201933547
parent9002b2ae6761ed41ae3b09b0b5de142d7bcfe0db (diff)
Map: pass train_no to _map_infobox as well4.17.3
-rw-r--r--lib/DBInfoscreen/Controller/Map.pm3
1 files changed, 3 insertions, 0 deletions
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},
);
}