IEMPIERE-173 GridTab left with current record after save

This commit is contained in:
Heng Sin Low 2012-03-05 11:20:12 +08:00
parent 2ab29d79cc
commit 96687acab4
1 changed files with 1 additions and 5 deletions

View File

@ -2845,11 +2845,7 @@ public class GridTable extends AbstractTableModel
if (retainedWhere != null)
{
String whereClause = m_whereClause;
if (m_whereClause == null || m_whereClause.trim().length() == 0)
{
m_whereClause = retainedWhere;
}
else
if (m_whereClause != null && m_whereClause.trim().length() > 0)
{
m_whereClause = "(" + m_whereClause + ") OR (" + retainedWhere + ") ";
}