From 03f22d1ca43b0de748860fd64c49b07c6df34b71 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 16 May 2014 13:33:23 +0800 Subject: [PATCH] 1004000 Performance issue with product info form. Minor fix for checking of empty order by clause. --- .../WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index fe3577bb26..90d7325851 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -435,7 +435,7 @@ public abstract class InfoPanel extends Window implements EventListener, // m_sqlOrder = ""; // m_sqlUserOrder = ""; - if (orderBy != null && orderBy.length() > 0) + if (orderBy != null && orderBy.trim().length() > 0) m_sqlOrder = " ORDER BY " + orderBy; } // prepareTable