From 30b52643107c6f9552bd3c429474dc28b15162ed Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 6 Jan 2012 22:23:18 -0500 Subject: [PATCH] IDEMPIERE-110 Tree Maintenance is showing inactive trees http://jira.idempiere.com/browse/IDEMPIERE-110 --- .../src/org/compiere/apps/form/TreeMaintenance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui/src/org/compiere/apps/form/TreeMaintenance.java b/org.adempiere.ui/src/org/compiere/apps/form/TreeMaintenance.java index f1d09647d2..33c80cd965 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/TreeMaintenance.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/TreeMaintenance.java @@ -40,7 +40,7 @@ public class TreeMaintenance { public KeyNamePair[] getTreeData() { return DB.getKeyNamePairs(MRole.getDefault().addAccessSQL( - "SELECT AD_Tree_ID, Name FROM AD_Tree WHERE TreeType NOT IN ('BB','PC') ORDER BY 2", + "SELECT AD_Tree_ID, Name FROM AD_Tree WHERE IsActive='Y' AND TreeType NOT IN ('BB','PC') ORDER BY 2", "AD_Tree", MRole.SQL_NOTQUALIFIED, MRole.SQL_RW), false); }