1004000 Performance issue with product info form. Minor fix for checking of empty order by clause.

This commit is contained in:
Heng Sin Low 2014-05-16 13:33:23 +08:00
parent d4927621f1
commit 03f22d1ca4
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
//
m_sqlOrder = "";
// m_sqlUserOrder = "";
if (orderBy != null && orderBy.length() > 0)
if (orderBy != null && orderBy.trim().length() > 0)
m_sqlOrder = " ORDER BY " + orderBy;
} // prepareTable