You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pa...@apache.org on 2020/01/25 06:33:06 UTC

[ofbiz-framework] branch trunk updated: Fixed: Order Status History section broken for anonymous order (OFBIZ-11231)

This is an automated email from the ASF dual-hosted git repository.

pawan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 8bcf9c2  Fixed: Order Status History section broken for anonymous order (OFBIZ-11231)
8bcf9c2 is described below

commit 8bcf9c2cc5447acf25ff6ee11a0388b29aa11b91
Author: Pawan Verma <pa...@hotwaxsystems.com>
AuthorDate: Sat Jan 25 12:02:48 2020 +0530

    Fixed: Order Status History section broken for anonymous order
    (OFBIZ-11231)
    
    Reason for the issue: Anonymous orders doen't have associated User login record, so shown statusUserLogin in that case.
---
 applications/order/template/order/OrderInfo.ftl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/order/template/order/OrderInfo.ftl b/applications/order/template/order/OrderInfo.ftl
index 70ae94b..313bc70 100644
--- a/applications/order/template/order/OrderInfo.ftl
+++ b/applications/order/template/order/OrderInfo.ftl
@@ -121,7 +121,7 @@ under the License.
                     <div>
                       ${loopStatusItem.get("description",locale)} <#if orderHeaderStatus.statusDatetime?has_content>- ${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDateTime(orderHeaderStatus.statusDatetime, "", locale, timeZone)?default("0000-00-00 00:00:00")}</#if>
                       &nbsp;
-                      ${uiLabelMap.CommonBy} - ${Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, userlogin.getString("partyId"), false)}
+                      ${uiLabelMap.CommonBy} - ${Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, userlogin.getString("partyId"), false)!orderHeaderStatus.statusUserLogin!}
                     </div>
                   </#list>
                 </#if>