1003581 IDEMPIERE-1584 -- Custom sort order is lost when updating a record. Fixed retain sort order for detail tabs.

This commit is contained in:
Heng Sin Low 2013-12-20 17:56:52 +08:00
parent c218175559
commit fe8d50e213
1 changed files with 5 additions and 0 deletions

View File

@ -2965,6 +2965,11 @@ public class GridTable extends AbstractTableModel
m_changed = false;
m_rowChanged = -1;
m_inserting = false;
if (m_lastSortColumnIndex >= 0)
{
loadComplete();
sort(m_lastSortColumnIndex, m_lastSortedAscending);
}
if (fireEvents) {
fireTableDataChanged();
fireDataStatusIEvent(DATA_REFRESH_MESSAGE, "");