IDEMPIERE-3883:preserve sorting of info window

This commit is contained in:
hieplq 2019-02-13 23:09:00 +07:00
parent d2a5982e48
commit 9d00488815
1 changed files with 4 additions and 4 deletions

View File

@ -1811,16 +1811,16 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
public void onRefresh()
{
GridTab gridTab = adTabbox.getSelectedGridTab();
if (gridTab != null && gridTab.getTableModel() != null)
/*if (gridTab != null && gridTab.getTableModel() != null)
{
gridTab.getTableModel().resetCacheSortState();
}
Column sortColumn = findCurrentSortColumn();
Column sortColumn = findCurrentSortColumn();*/
onRefresh(true, false);
if (sortColumn != null)
/*if (sortColumn != null)
{
sortColumn.setSortDirection("natural");
}
}*/
if (gridTab.isSortTab()) { // refresh is not refreshing sort tabs
IADTabpanel tabPanel = adTabbox.getSelectedTabpanel();
tabPanel.query(false, 0, 0);