Thanks Jacopo,  :-)

--
Ashish Nagar

jaco...@apache.org wrote:
Author: jacopoc
Date: Wed Apr 22 13:18:36 2009
New Revision: 767509

URL: http://svn.apache.org/viewvc?rev=767509&view=rev
Log:
Fixed bug reported by Ashish Nagar in the ml: the header should work also with 
user logins not associated to a party.

Modified:
    ofbiz/trunk/themes/bluelight/includes/header.ftl

Modified: ofbiz/trunk/themes/bluelight/includes/header.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/includes/header.ftl?rev=767509&r1=767508&r2=767509&view=diff
==============================================================================
--- ofbiz/trunk/themes/bluelight/includes/header.ftl (original)
+++ ofbiz/trunk/themes/bluelight/includes/header.ftl Wed Apr 22 13:18:36 2009
@@ -135,7 +135,11 @@
         <li class="control-area">
           <ul id="preferences-menu">
             <#if userLogin?exists>
-              <li class="user"><a 
href="/partymgr/control/viewprofile?partyId=${userLogin.partyId}">${userName}</a></li>
+              <#if userLogin.partyId?exists>
+                <li class="user"><a 
href="/partymgr/control/viewprofile?partyId=${userLogin.partyId}">${userName}</a></li>
+              <#else>
+                <li class="user">${userName}</li>
+              </#if>
               <li class="org">${orgName}</li>
             </#if>
             <li class="first"><a 
href="<@ofbizUrl>LookupLocales</@ofbizUrl>">${uiLabelMap.CommonLanguageTitle} : 
${locale.getDisplayName(locale)}</a></li>




Reply via email to