Hi all,

I'm facing an issue with the generated prev/next links, when used with portals. the java method is adding a # sign at the end of the URI, which is making the browser not reading the URI's end.

One way to correct this issue is this one, and I would like to know if everyone is ok with it, or if there is a better way to make it work.

Index: framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
===================================================================
--- framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java (révision 987954) +++ framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java (copie de travail)
@@ -2218,7 +2218,7 @@

         String anchor = "";
         String paginateAnchor = modelForm.getPaginateTargetAnchor();
-        if (paginateAnchor != null) anchor = "#" + paginateAnchor;
+ if (UtilValidate.isNotEmpty(paginateAnchor)) anchor = "#" + paginateAnchor;


TIA,

--
Erwan de FERRIERES
www.nereide.biz

Reply via email to