From 95546018ed38cc318b50d8b3cbb49ce28f912dd0 Mon Sep 17 00:00:00 2001 From: Diego Ruiz Date: Thu, 3 May 2018 22:06:14 +0200 Subject: [PATCH] IDEMPIERE-3704 View Validate does not take into account IsActive ViewColumn --- org.adempiere.base/src/org/compiere/model/MViewComponent.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.adempiere.base/src/org/compiere/model/MViewComponent.java b/org.adempiere.base/src/org/compiere/model/MViewComponent.java index 97074e6bc3..4bdbbab4d6 100644 --- a/org.adempiere.base/src/org/compiere/model/MViewComponent.java +++ b/org.adempiere.base/src/org/compiere/model/MViewComponent.java @@ -76,6 +76,7 @@ public class MViewComponent extends X_AD_ViewComponent { Query query = new Query(getCtx(), MViewColumn.Table_Name, MViewColumn.COLUMNNAME_AD_ViewComponent_ID + "=?", get_TrxName()); query.setParameters(getAD_ViewComponent_ID()); + query.setOnlyActiveRecords(true); query.setOrderBy("SeqNo, AD_ViewColumn_ID"); List list = query.list();