?substring(...) argument #2 had invalid value: The index mustn't be greater than the length of the string, 0, but it was 1. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign firstName = user.getFirstName... [in template "20096#20121#44967" at line 8, column 33] ----
1<div class="box-page-name d-flex align-items-center">
2 <div class="container">
3 <div class="row">
4 <div class="col-12 col-md-6">
5 <div class="badge-user badge-user--big d-flex align-items-center">
6 <div class="d-flex align-items-center">
7 <#if user.fetchPortraitURL(themeDisplay)?? && user.fetchPortraitURL(themeDisplay)?contains("img_id=0")>
8 <#assign firstName=user.getFirstName()?substring(0,1) />
9 <#assign lastName=user.getLastName()?substring(0,1) />
10 <#assign organizations=user.getOrganizations() />
11 <span class="badge-user__avatar text-center">${firstName?upper_case}${lastName?upper_case}</span>
12 <#else>
13 <img src="${user.getPortraitURL(themeDisplay)}" alt="${fullName}" class="badge-user__img d-none d-lg-block" />
14 </#if>
15 <span class="d-none d-sm-block">
16 <span class="badge-user__name d-block">${user.getFullName()}</span>
17 <#if organizations?size gt 0>
18 <#assign userOrganization = organizations[0].name />
19 <span class="badge-user__role d-block">${userOrganization}</span>
20 </#if>
21 </span>
22 </div>
23 </div>
24 <#assign navItems = entries />
25 <#assign currentLayout = themeDisplay.getLayout() />
26 <div class="box-page-name__btn d-flex flex-wrap">
27 <#list navItems as navItem>
28 <#assign activeLayout = "" />
29 <#if navItem.isBrowsable()>
30 <#if navItem.getLayout().getFriendlyURL() == currentLayout.getFriendlyURL()>
31 <#assign activeLayout = "--full" />
32 </#if>
33 <#assign nav_item_href_link = "href='${navItem.getURL()}'" />
34 <a data-senna-off="true" ${nav_item_href_link} title="${navItem.getName()}" role="menuitem" target="_self" class="btn-cta btn-cta${activeLayout}">${navItem.getName()}</a>
35 </#if>
36 </#list>
37 </div>
38 </div>
39 </div>
40 </div>
41</div>
42<div class="box-info">
43 <div class="container">
44 <div class="row">
45 <div class="col-12">
46 <div class="d-flex flex-column flex-md-row justify-content-md-between align-items-md-end">
47 <div>
48 </div>
49 </div>
50 </div>
51 </div>
52 </div>
53</div>
Non è stato trovato alcun risultato con le parole chiave indicate: .