Author: jleroux
Date: Fri Jan 6 05:47:27 2012
New Revision: 1227965
URL:
http://svn.apache.org/viewvc?rev=1227965&view=revLog:
A patch from Deepak Dixit "Autocompleter fails if lookup fieldFormName contains (?)"
https://issues.apache.org/jira/browse/OFBIZ-4646For regenerating issue go to
https://demo-trunk.ofbiz.apache.org/facility/control/ReceiveInventory?facilityId=WebStoreWarehouse , enter GZ-1005 and receive.
Now on receive inventory page search "Facility Location" via autocompleter then it will show the lookup screen instead of search result.
Modified:
ofbiz/trunk/framework/images/webapp/images/selectall.js
Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=1227965&r1=1227964&r2=1227965&view=diff==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Fri Jan 6 05:47:27 2012
@@ -394,7 +394,11 @@ function ajaxAutoCompleter(areaCsvString
var numAreas = parseInt(areaArray.length / 3);
for (var i = 0; i < numAreas * 3; i = i + 3) {
- var url = areaArray[i + 1] + "?" + areaArray[i + 2];
+ var initUrl = areaArray[i + 1];
+ if (initUrl.indexOf("?") > -1)
+ var url = initUrl + "&" + areaArray[i + 2];
+ else
+ var url = initUrl + "?" + areaArray[i + 2];
var div = areaArray[i];
// create a separated div where the result JSON Opbject will be placed
if ((jQuery("#" + div + "_auto")).length < 1) {