Applied fix from jira issue OFBIZ-2562 (On changing the order status from order view page, the changeOrderStatus request throws twice and gives error on console.)
Thanks Rishi for your contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@781661 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -94,7 +94,11 @@ function setKeyAsParameter(text, li) {
|
||||
//Generic function for fetching country's associated state list.
|
||||
function getAssociatedStateList(countryId, stateId, errorId, divId) {
|
||||
var optionList = [];
|
||||
new Ajax.Request("getAssociatedStateList", {
|
||||
var requestToSend = "getAssociatedStateList";
|
||||
if ($('orderViewed')) {
|
||||
requestToSend = "/ordermgr/control/getAssociatedStateList"
|
||||
}
|
||||
new Ajax.Request(requestToSend, {
|
||||
asynchronous: false,
|
||||
parameters: {countryGeoId:$F(countryId)},
|
||||
onSuccess: function(transport) {
|
||||
|
||||
Reference in New Issue
Block a user