Author: bibryam
Date: Fri Oct 30 01:25:56 2009
New Revision: 831180
URL:
http://svn.apache.org/viewvc?rev=831180&view=revLog:
Replaced & with & from my previous commit.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/ModelTree.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/ModelTree.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/ModelTree.java?rev=831180&r1=831179&r2=831180&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/ModelTree.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/ModelTree.java Fri Oct 30 01:25:56 2009
@@ -184,14 +184,16 @@
Map<String, Object> paramMap = UtilGenerics.checkMap(context.get("requestParameters"));
if (UtilValidate.isNotEmpty(paramMap)) {
Map<String, Object> requestParameters = new HashMap<String, Object>(paramMap);
- requestParameters.remove(this.getTrailName(context));
- String queryString = UtilHttp.urlEncodeArgs(requestParameters, false);
- if (expColReq.indexOf("?") < 0) {
- expColReq += "?";
- } else {
- expColReq += "&";
- }
- expColReq += queryString;
+ requestParameters.remove(this.getTrailName(context));
+ if (UtilValidate.isNotEmpty(requestParameters)) {
+ String queryString = UtilHttp.urlEncodeArgs(requestParameters, false);
+ if (expColReq.indexOf("?") < 0) {
+ expColReq += "?";
+ } else {
+ expColReq += "&";
+ }
+ expColReq += queryString;
+ }
}
return expColReq;