IDEMPIERE-3642 Navigation using trees is broken when tab is in detail
This commit is contained in:
parent
4b6185397c
commit
626cad8cac
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue