ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doo...@apache.org
Subject svn commit: r820787 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/ordernotes.ftl
Date Thu, 01 Oct 2009 21:01:24 GMT
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>



Mime
View raw message