Author: doogie
Date: Tue Sep 29 16:34:46 2009
New Revision: 820022
URL:
http://svn.apache.org/viewvc?rev=820022&view=revLog:
Handle case where NoteData.noteParty is null; this can occur when
using seed data, with the auto-created UserLogin admin entity. In
this case, the UserLogin will have no partyId attached.
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Notes.ftl
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Notes.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Notes.ftl?rev=820022&r1=820021&r2=820022&view=diff==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Notes.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Notes.ftl Tue Sep 29 16:34:46 2009
@@ -34,7 +34,9 @@
<tr>
<td>
<div><b>${uiLabelMap.FormFieldTitle_noteName}: </b>${noteRef.noteName?if_exists}</div>
- <div><b>${uiLabelMap.CommonBy}: </b>${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, noteRef.noteParty, true)}</div>
+ <#if noteRef.noteParty?has_content>
+ <div><b>${uiLabelMap.CommonBy}: </b>${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, noteRef.noteParty, true)}</div>
+ </#if>
<div><b>${uiLabelMap.CommonAt}: </b>${noteRef.noteDateTime.toString()}</div>
</td>
<td>
@@ -50,4 +52,4 @@
${uiLabelMap.PartyNoNotesForParty}
</#if>
</div>
- </div>
\ No newline at end of file
+ </div>