From f613a8a2556aa22455badfc2014a6cf08ebeb90b Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Tue, 23 Jan 2018 08:34:04 +0000 Subject: [PATCH] Fixed: Rainbow theme: bug in avatar.ftl when the last name does not exist (OFBIZ-10177) Both 1st and last names must be present else it's confusing and better to show the username git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821965 13f79535-47bb-0310-9956-ffa450edef68 --- themes/rainbowstone/template/includes/Avatar.ftl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/themes/rainbowstone/template/includes/Avatar.ftl b/themes/rainbowstone/template/includes/Avatar.ftl index 6a72f90148..347722eb64 100644 --- a/themes/rainbowstone/template/includes/Avatar.ftl +++ b/themes/rainbowstone/template/includes/Avatar.ftl @@ -31,13 +31,9 @@ under the License. user
onclick="javascript:location.href='/partymgr/control/viewprofile?partyId=${userLogin.partyId}'"> - <#if person?exists> - <#if person.firstName??> - ${person.firstName} - ${person.lastName?upper_case} - <#else> - ${userLogin.userLoginId} - + <#if (person.firstName)?? && (person.lastName)??> + ${person.firstName} + ${person.lastName?upper_case} <#else> ${userLogin.userLoginId}