IDEMPIERE-885 Info Columns defined as Query Criteria are displayed even if it is configured as not active

This commit is contained in:
Heng Sin Low 2013-04-26 17:43:26 +08:00
parent bbfa4ad2aa
commit 5ff38a68f3
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ public class MInfoWindow extends X_AD_InfoWindow
public MInfoColumn[] getInfoColumns(TableInfo[] tableInfos) {
Query query = new Query(getCtx(), MTable.get(getCtx(), I_AD_InfoColumn.Table_ID), I_AD_InfoColumn.COLUMNNAME_AD_InfoWindow_ID+"=?", get_TrxName());
List<MInfoColumn> list = query.setParameters(getAD_InfoWindow_ID())
.setOnlyActiveRecords(true)
.setOrderBy(I_AD_InfoColumn.COLUMNNAME_SeqNo)
.list();
for(int i = list.size() - 1; i >= 0; i--) {
@ -87,6 +88,7 @@ public class MInfoWindow extends X_AD_InfoWindow
public MInfoColumn[] getInfoColumns() {
Query query = new Query(getCtx(), MTable.get(getCtx(), I_AD_InfoColumn.Table_ID), I_AD_InfoColumn.COLUMNNAME_AD_InfoWindow_ID+"=?", get_TrxName());
List<MInfoColumn> list = query.setParameters(getAD_InfoWindow_ID())
.setOnlyActiveRecords(true)
.setOrderBy(I_AD_InfoColumn.COLUMNNAME_SeqNo)
.list();
return list.toArray(new MInfoColumn[0]);