You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/10/01 23:01:24 UTC

svn commit: r820787 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/ordernotes.ftl

Author: doogie
Date: Thu Oct  1 21:01:23 2009
New Revision: 820787

URL: http://svn.apache.org/viewvc?rev=820787&view=rev
Log:
Another NPE, UserLogin may not have an associated party.

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/order/ordernotes.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/order/ordernotes.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/order/ordernotes.ftl?rev=820787&r1=820786&r2=820787&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/order/ordernotes.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/order/ordernotes.ftl Thu Oct  1 21:01:23 2009
@@ -38,7 +38,9 @@
               <#list orderNotes as note>
                 <tr>
                   <td valign="top" width="35%">
-                    <div>&nbsp;<span class="label">${uiLabelMap.CommonBy}</span>&nbsp;${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, note.noteParty, true)}</div>
+                    <#if note.noteParty?has_content>
+                      <div>&nbsp;<span class="label">${uiLabelMap.CommonBy}</span>&nbsp;${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, note.noteParty, true)}</div>
+                    </#if>
                     <div>&nbsp;<span class="label">${uiLabelMap.CommonAt}</span>&nbsp;${note.noteDateTime?string?if_exists}</div>
                   </td>
                   <td valign="top" width="50%">
@@ -78,4 +80,4 @@
       </table>
     </div>
 </div>
-</#if>
\ No newline at end of file
+</#if>