Fixed the new record button in find dialog incorrectly set an empty query object as the current query for the window.

This commit is contained in:
Heng Sin Low 2011-02-07 11:18:23 +08:00
parent 6b37fe8be3
commit c0559b8e18
1 changed files with 4 additions and 1 deletions

View File

@ -665,8 +665,11 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
// Title is not set when the number of rows is below the minRecords parameter (10)
if (!find.isCancel())
{
query = find.getQuery();
m_findCreateNew = find.isCreateNew();
if (!m_findCreateNew)
{
query = find.getQuery();
}
}
else
m_findCancelled = true;