IDEMPIERE-5744 MDashboardPreference.getForSessionQuery: add client filter and remove order by ad_client_id (#1866)
This commit is contained in:
parent
cab41a623b
commit
7336dc967d
|
@ -100,12 +100,13 @@ public class MDashboardPreference extends X_PA_DashboardPreference
|
||||||
if(lineNo >= 0)
|
if(lineNo >= 0)
|
||||||
parameters.add(lineNo);
|
parameters.add(lineNo);
|
||||||
|
|
||||||
String orderByClause = (lineNo < 0) ? COLUMNNAME_ColumnNo+","+COLUMNNAME_AD_Client_ID+","+COLUMNNAME_Line
|
String orderByClause = (lineNo < 0) ? COLUMNNAME_ColumnNo+","+COLUMNNAME_Line
|
||||||
: COLUMNNAME_Line+","+COLUMNNAME_ColumnNo+","+COLUMNNAME_AD_Client_ID;
|
: COLUMNNAME_Line+","+COLUMNNAME_ColumnNo;
|
||||||
|
|
||||||
return new Query(ctx, Table_Name, whereClause.toString(), null)
|
return new Query(ctx, Table_Name, whereClause.toString(), null)
|
||||||
.setParameters(parameters)
|
.setParameters(parameters)
|
||||||
.setOnlyActiveRecords(false)
|
.setOnlyActiveRecords(false)
|
||||||
|
.setClient_ID()
|
||||||
.setApplyAccessFilter(true, false)
|
.setApplyAccessFilter(true, false)
|
||||||
.setOrderBy(orderByClause);
|
.setOrderBy(orderByClause);
|
||||||
}
|
}
|
||||||
|
@ -138,13 +139,14 @@ public class MDashboardPreference extends X_PA_DashboardPreference
|
||||||
|
|
||||||
String orderByClause = "";
|
String orderByClause = "";
|
||||||
if(isCol)
|
if(isCol)
|
||||||
orderByClause = COLUMNNAME_ColumnNo+","+COLUMNNAME_AD_Client_ID+","+ COLUMNNAME_Line;
|
orderByClause = COLUMNNAME_ColumnNo+","+COLUMNNAME_Line;
|
||||||
else
|
else
|
||||||
orderByClause = COLUMNNAME_Line+","+COLUMNNAME_AD_Client_ID+","+ COLUMNNAME_ColumnNo;
|
orderByClause = COLUMNNAME_Line+","+COLUMNNAME_ColumnNo;
|
||||||
|
|
||||||
return new Query(ctx, Table_Name, whereClause.toString(), null)
|
return new Query(ctx, Table_Name, whereClause.toString(), null)
|
||||||
.setParameters(parameters)
|
.setParameters(parameters)
|
||||||
.setOnlyActiveRecords(false)
|
.setOnlyActiveRecords(false)
|
||||||
|
.setClient_ID()
|
||||||
.setApplyAccessFilter(true, false)
|
.setApplyAccessFilter(true, false)
|
||||||
.setOrderBy(orderByClause);
|
.setOrderBy(orderByClause);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue