From aa49349c50e2484f7fd48cfb63cf6848052ea437 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 27 Jan 2020 21:14:53 +0100 Subject: Wagenreihung: Correctly format powercar numbers --- templates/wagenreihung.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep index 2167204..2c63c0e 100644 --- a/templates/wagenreihung.html.ep +++ b/templates/wagenreihung.html.ep @@ -120,7 +120,7 @@ % if (length($uic_id) != 12) { <%= $uic_id %> % } -% elsif ($wr->train_type eq 'ICE') { +% elsif (substr($uic_id, 0, 2) >= 90) { <%= substr($uic_id, 0, 2) %><%= substr($uic_id, 2, 2) %><%= substr($uic_id, 4, 1) %><%= substr($uic_id, 5, 3) %><%= substr($uic_id, 8, 3) %><%= substr($uic_id, 11) %> % } % else { -- cgit v1.2.3