From eabb60853470c9a4e5ac950615c2f73ec4a280d6 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Fri, 24 Jul 2009 07:40:37 +0000 Subject: [PATCH] The Tab Sort without parent column http://sourceforge.net/tracker/?func=detail&atid=879335&aid=2826406&group_id=176962 --- client/src/org/compiere/grid/VSortTab.java | 5 +++++ zkwebui/WEB-INF/src/org/adempiere/webui/panel/ADSortTab.java | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/client/src/org/compiere/grid/VSortTab.java b/client/src/org/compiere/grid/VSortTab.java index 0c8fea2e8a..801c120a34 100644 --- a/client/src/org/compiere/grid/VSortTab.java +++ b/client/src/org/compiere/grid/VSortTab.java @@ -425,6 +425,11 @@ public class VSortTab extends CPanel implements APanelTab { sql.append(" WHERE t.").append(m_ParentColumnName).append("=?"); } + else + { + sql.append(" WHERE 1=1"); + } + if (m_IdentifierTranslated) sql.append(" AND t.").append(m_KeyColumnName).append("=tt.").append(m_KeyColumnName) .append(" AND tt.AD_Language=?"); diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/panel/ADSortTab.java b/zkwebui/WEB-INF/src/org/adempiere/webui/panel/ADSortTab.java index a347a1ad05..dc83b058f9 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/panel/ADSortTab.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/panel/ADSortTab.java @@ -406,6 +406,10 @@ public class ADSortTab extends Panel implements IADTabpanel { sql.append(" WHERE t.").append(m_ParentColumnName).append("=?"); } + else + { + sql.append(" WHERE 1=1"); + } if (m_IdentifierTranslated) sql.append(" AND t.").append(m_KeyColumnName).append("=tt.").append(m_KeyColumnName) .append(" AND tt.AD_Language=?");