svn commit: r1080563 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1080563 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java

erwan
Author: erwan
Date: Fri Mar 11 13:14:42 2011
New Revision: 1080563

URL: http://svn.apache.org/viewvc?rev=1080563&view=rev
Log:
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