IDEMPIERE-2597 WhereClause of report view can cause issues
This commit is contained in:
parent
d451716524
commit
6fa47971fd
|
@ -170,7 +170,7 @@ public class DataEngine
|
||||||
tableName = rs.getString(2); // TableName
|
tableName = rs.getString(2); // TableName
|
||||||
reportName = rs.getString(3);
|
reportName = rs.getString(3);
|
||||||
// Add WhereClause restriction from AD_ReportView - teo_sarca BF [ 1761891 ]
|
// Add WhereClause restriction from AD_ReportView - teo_sarca BF [ 1761891 ]
|
||||||
String whereClause = rs.getString(4);
|
String whereClause = "(" + rs.getString(4) + ")";
|
||||||
if (!Util.isEmpty(whereClause)) {
|
if (!Util.isEmpty(whereClause)) {
|
||||||
if (whereClause.indexOf("@") == -1) {
|
if (whereClause.indexOf("@") == -1) {
|
||||||
queryCopy.addRestriction(whereClause);
|
queryCopy.addRestriction(whereClause);
|
||||||
|
|
Loading…
Reference in New Issue