Fix null teamName in team tournament registration view
Handle case where player is registered but not yet assigned to a team.
This commit is contained in:
@@ -100,11 +100,12 @@
|
|||||||
#end
|
#end
|
||||||
#if($tour.type != 'INDIVIDUAL')
|
#if($tour.type != 'INDIVIDUAL')
|
||||||
#set($teamId = $tmap[$part.id])
|
#set($teamId = $tmap[$part.id])
|
||||||
|
#set($teamName = false)
|
||||||
#if($teamId)
|
#if($teamId)
|
||||||
#set($teamName = $!pmap[$teamId].name)
|
#set($teamName = $!pmap[$teamId].name)
|
||||||
#end
|
#end
|
||||||
<td title="$esc.html($teamName)">
|
<td title="#if($teamName)$esc.html($teamName)#end">
|
||||||
$esc.html($utils.truncate($!teamName, 10))
|
#if($teamName)$esc.html($utils.truncate($teamName, 10))#end
|
||||||
</td>
|
</td>
|
||||||
#end
|
#end
|
||||||
<td class="participating" data-sort="#if($part.skip)$part.skip.size()/part.skip#{else}0#end">
|
<td class="participating" data-sort="#if($part.skip)$part.skip.size()/part.skip#{else}0#end">
|
||||||
|
|||||||
Reference in New Issue
Block a user