From 28c7f83f47d7c4023828bc5a3e092fb03c7352ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 28 Feb 2024 09:30:34 +0100 Subject: [PATCH] fix: avoid rendering error caused by incomplete data --- .../administrative/assignment/index.html.twig | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/templates/administrative/assignment/index.html.twig b/templates/administrative/assignment/index.html.twig index 32f71e0..878b6bd 100644 --- a/templates/administrative/assignment/index.html.twig +++ b/templates/administrative/assignment/index.html.twig @@ -94,11 +94,15 @@ {% if assignment.pickup %} {% set pickup = assignment.destination.pickup(assignment.pickup) %} - - ab {{ pickup.city }} -
- {{ pickup.time }} -
+ {% if pickup %} + + ab {{ pickup.city }} +
+ {{ pickup.time }} +
+ {% else %} + ungültiger Zustieg + {% endif %} {% else %} - {% endif %}