IDEMPIERE-885 Info Columns defined as Query Criteria are displayed even if it is configured as not active
This commit is contained in:
parent
bbfa4ad2aa
commit
5ff38a68f3
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue