Files
ofbiz-framework/applications/commonext
Jacques Le Roux 30c0d6d7af Fixed: One page checkout is broken because of ordermgr::getAssociatedStateList (OFBIZ-11838)
On orderview screen at the ordermgr, when a user tries to change the status of
the order, in OrderInfo.ftl, we are calling "changeOrderStatus" request as

<@ofbizUrl>changeOrderStatus/orderview</@ofbizUrl>

Hence when the request is done, it is rewriting URL to
https://localhost:8443/ordermgr/control/changeOrderStatus/orderview.

When js functions running in the backend like "getAssociatedStateList" are
called, they are getting the wrong URL to send a request to. This was causing
the issue.

For now, there are two different fixes that can handle both problems which are
mentioned in OFBIZ-2562 and OFBIZ-11838.

1.
  To change the request mapping for "changeOrderStatus" and add request-redirect
  to "orderview" screen. Change the actions in the forms in OrderInfo.ftl to
  call "changeOrderStatus" request only and then remove code in
  "getAssociatedStateList" js function to rewrite URL.

2.
  To add .length to the existing URL rewrite code written in
  "getAssociatedStateList" js function as

if (jQuery('#orderViewed').length) {
    requestToSend = "/ordermgr/control/getAssociatedStateList"
}

Thanks: Pritam Kute!

I picked the 2nd solution
2020-07-25 19:19:32 +02:00
..
2017-10-27 08:11:12 +00:00

Apache OFBiz

commonext component

This OFBiz component enables organisations to extend the elements in the common component.

more information

For more information about this component visit the product page in the OFBiz WIKI, which can be found at https://cwiki.apache.org/confluence/display/OFBIZ/Extending+the+common+component

issues

JIRA issues related to this component can be found at https://issues.apache.org/jira/browse/OFBIZ/component/12313162

commits

Committed revisions can be viewed at http://svn.apache.org/viewvc/ofbiz/trunk/applications/commonext