Fixed: Rainbow theme: bug in avatar.ftl when the last name does not exist
Both 1st and last names must be present else it's confusing and better to show
the username
@@ -31,16 +31,12 @@ under the License.
<img src="/rainbowstone/images/avatar.svg" alt="user">
</#if>
<div id="user-name" <#if userLogin.partyId??>onclick="javascript:location.href='/partymgr/control/viewprofile?partyId=${userLogin.partyId}'"</#if>>
- <#if person?exists>
- <#if person.firstName??>
+ <#if (person.firstName)?? && (person.lastName)??>
<span>${person.firstName}</span>
<span>${person.lastName?upper_case}</span>
<#else>
<span>${userLogin.userLoginId}</span>
</#if>
- <#else>
- <span>${userLogin.userLoginId}</span>
- </#if>
</div>
<a id="user-lang" href="<@ofbizUrl>ListLocales</@ofbizUrl>">
<#assign userLang = locale.toString()>
