IDEMPIERE-2597 WhereClause of report view can cause issues

This commit is contained in:
Carlos Ruiz 2015-04-25 10:48:20 -05:00
parent d451716524
commit 6fa47971fd
1 changed files with 1 additions and 1 deletions

View File

@ -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);