IDEMPIERE-2597 WhereClause of report view can cause issues / thanks to Armen Rizal for reporting issue with previous commit
This commit is contained in:
parent
a0aef406d8
commit
632b19b75c
|
@ -170,8 +170,9 @@ 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)) {
|
||||||
|
whereClause = "(" + whereClause + ")"; // IDEMPIERE-2597
|
||||||
if (whereClause.indexOf("@") == -1) {
|
if (whereClause.indexOf("@") == -1) {
|
||||||
queryCopy.addRestriction(whereClause);
|
queryCopy.addRestriction(whereClause);
|
||||||
} else { // replace context variables
|
} else { // replace context variables
|
||||||
|
|
Loading…
Reference in New Issue