IDEMPIERE-5171 GridTable duplicate WhereClause Fix (#1147)

* IDEMPIERE-5171 GridTable duplicate WhereClause Fix

* IDEMPIERE-5171 GridTable Remove old commented code
This commit is contained in:
igorpojzl 2022-02-02 10:53:48 +01:00 committed by GitHub
parent 81bb438237
commit a32263c71f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3012,13 +3012,13 @@ public class GridTable extends AbstractTableModel
close(false);
if (retainedWhere != null)
{
// String whereClause = m_whereClause;
if (m_whereClause != null && m_whereClause.trim().length() > 0)
{
m_whereClause = "((" + m_whereClause + ") OR (" + retainedWhere + ")) ";
StringBuilder orRetainedWhere = new StringBuilder(") OR (").append(retainedWhere).append(")) ");
if (! m_whereClause.contains(orRetainedWhere.toString()))
m_whereClause = "((" + m_whereClause + orRetainedWhere.toString();
}
open(m_maxRows);
// m_whereClause = whereClause;
}
else
{