IDEMPIERE-3642 Navigation using trees is broken when tab is in detail

This commit is contained in:
Nicolas Micoud 2018-03-05 21:04:44 +01:00
parent 4b6185397c
commit 626cad8cac
2 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
/**
*
*/
private static final long serialVersionUID = -3728896318124756192L;
private static final long serialVersionUID = -1639104320722589666L;
private static final String ON_SAVE_OPEN_PREFERENCE_EVENT = "onSaveOpenPreference";
@ -1343,7 +1343,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
throw new AdempiereException(Msg.getMsg(Env.getCtx(),"RecordIsNotInCurrentSearch"));
}
windowPanel.onTreeNavigate(row);
windowPanel.onTreeNavigate(gridTab, row);
}
/**

View File

@ -868,13 +868,13 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
/**
* @see ToolbarListener#onPrevious()
*/
public void onTreeNavigate(final int rowIndex)
public void onTreeNavigate(final GridTab gt, final int rowIndex)
{
Callback<Boolean> callback = new Callback<Boolean>() {
@Override
public void onCallback(Boolean result) {
if (result) {
adTabbox.getSelectedGridTab().navigate(rowIndex);
gt.navigate(rowIndex);
//focusToActivePanel();
}
}