IDEMPIERE-1726 Error in report when there are filters (historical records)

This commit is contained in:
Carlos Ruiz 2014-05-07 19:10:47 -05:00
parent 9a1a4eb2ee
commit 20d2b7fdc3
1 changed files with 2 additions and 2 deletions

View File

@ -2006,8 +2006,8 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
if (null!=selectedHistoryItem && selectedHistoryItem.toString().length() > 0 && getHistoryDays(selectedHistoryValue) > 0)
{
StringBuilder where = new StringBuilder();
where.append("Created >= ");
StringBuilder where = new StringBuilder(m_tableName);
where.append(".Created >= ");
where.append("SysDate-").append(getHistoryDays(selectedHistoryValue));
m_query.addRestriction(where.toString());
}