From 617f715923fb77474ca418aff3ca87d6d166981c Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Sat, 29 Nov 2025 21:31:48 +0100 Subject: [PATCH] Fix null teamName in team tournament registration view Handle case where player is registered but not yet assigned to a team. --- view-webapp/src/main/webapp/tour-registration.inc.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/view-webapp/src/main/webapp/tour-registration.inc.html b/view-webapp/src/main/webapp/tour-registration.inc.html index 178b8d7..5315d82 100644 --- a/view-webapp/src/main/webapp/tour-registration.inc.html +++ b/view-webapp/src/main/webapp/tour-registration.inc.html @@ -100,11 +100,12 @@ #end #if($tour.type != 'INDIVIDUAL') #set($teamId = $tmap[$part.id]) + #set($teamName = false) #if($teamId) #set($teamName = $!pmap[$teamId].name) #end - - $esc.html($utils.truncate($!teamName, 10)) + + #if($teamName)$esc.html($utils.truncate($teamName, 10))#end #end