Author: erwan
Date: Fri Mar 11 13:14:42 2011
New Revision: 1080563
URL:
http://svn.apache.org/viewvc?rev=1080563&view=revLog:
paginateAnchor should be tested for emptyness and not for null
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java?rev=1080563&r1=1080562&r2=1080563&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java Fri Mar 11 13:14:42 2011
@@ -2214,7 +2214,7 @@ public class MacroFormRenderer implement
String anchor = "";
String paginateAnchor = modelForm.getPaginateTargetAnchor();
- if (paginateAnchor != null) anchor = "#" + paginateAnchor;
+ if (UtilValidate.isNotEmpty(paginateAnchor)) anchor = "#" + paginateAnchor;
// Create separate url path String and request parameters String,
// add viewIndex/viewSize parameters to request parameter String