IDEMPIERE-1357 Tree panel not is updated with result of Find window / testing IDEMPIERE-1477 found that IDEMPIERE-1357 was back

This commit is contained in:
Carlos Ruiz 2013-12-26 18:27:37 -05:00
parent 9f7635ac7b
commit 9e17fdff49
1 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import java.util.Map.Entry;
import java.util.logging.Level;
import org.adempiere.base.Core;
import org.adempiere.exceptions.AdempiereException;
import org.adempiere.webui.AdempiereIdGenerator;
import org.adempiere.webui.AdempiereWebUI;
import org.adempiere.webui.LayoutUtils;
@ -1141,7 +1142,11 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
{
if (nodeID > 0 && logger.isLoggable(Level.WARNING))
logger.log(Level.WARNING, "Tab does not have ID with Node_ID=" + nodeID);
return;
if (gridTab.getCurrentRow() >= 0)
{
gridTab.setCurrentRow(gridTab.getCurrentRow(), true);
}
throw new AdempiereException(Msg.getMsg(Env.getCtx(),"RecordIsNotInCurrentSearch"));
}
// Navigate to node row