[
https://issues.apache.org/jira/browse/OFBIZ-11838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17164871#comment-17164871
]
Pritam Kute commented on OFBIZ-11838:
-------------------------------------
Hello [~jleroux],
I have investigated more on
[OFBIZ-2562|https://issues.apache.org/jira/browse/OFBIZ-2562] and made the
following observations.
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
{code:java}
<@ofbizUrl>changeOrderStatus/orderview</@ofbizUrl>
{code}
Hence when the request is done, it is rewriting URL to
https://localhost:8443/ordermgr/control/changeOrderStatus/orderview. When js
functions are 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|https://issues.apache.org/jira/browse/OFBIZ-2562] and
[OFBIZ-11838|https://issues.apache.org/jira/browse/OFBIZ-11838].
# 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.
# To add .length to the existing URL rewrite code written in
"getAssociatedStateList" js function as
{code:java}
if (jQuery('#orderViewed').length) {
requestToSend = "/ordermgr/control/getAssociatedStateList"
}
{code}
> One page checkout is broken because of ordermgr::getAssociatedStateList
> -----------------------------------------------------------------------
>
> Key: OFBIZ-11838
> URL: https://issues.apache.org/jira/browse/OFBIZ-11838
> Project: OFBiz
> Issue Type: Bug
> Components: ecommerce
> Affects Versions: Trunk
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Priority: Major
>
> It works in example/control/FormWidgetExamples so it's an ecommerce issue. It
> also works at https://demo-stable.ofbiz.apache.org/ecomseo/onePageCheckout so
> it's something "recent"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)