IDEMPIERE-2977 Update tab name not always correct - based on patch from Anozi Mada at https://groups.google.com/d/msg/idempiere/h6PkdgLO1Wk/Avfi0h0aAQAJ
This commit is contained in:
parent
72a5009f03
commit
13bdf0acf3
|
@ -1313,7 +1313,6 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
|
||||
}
|
||||
|
||||
private String prevdbInfo = "";
|
||||
/**
|
||||
* @param e
|
||||
* @see DataStatusListener#dataStatusChanged(DataStatusEvent)
|
||||
|
@ -1346,15 +1345,12 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
breadCrumb.setStatusDB(dbInfo, e);
|
||||
|
||||
String adInfo = e.getAD_Message();
|
||||
if ( ! prevdbInfo.equals(dbInfo)
|
||||
&& ( adInfo == null
|
||||
|| GridTab.DEFAULT_STATUS_MESSAGE.equals(adInfo)
|
||||
|| GridTable.DATA_REFRESH_MESSAGE.equals(adInfo)
|
||||
|| GridTable.DATA_INSERTED_MESSAGE.equals(adInfo)
|
||||
|| GridTable.DATA_UPDATE_COPIED_MESSAGE.equals(adInfo)
|
||||
)
|
||||
if ( adInfo == null
|
||||
|| GridTab.DEFAULT_STATUS_MESSAGE.equals(adInfo)
|
||||
|| GridTable.DATA_REFRESH_MESSAGE.equals(adInfo)
|
||||
|| GridTable.DATA_INSERTED_MESSAGE.equals(adInfo)
|
||||
|| GridTable.DATA_UPDATE_COPIED_MESSAGE.equals(adInfo)
|
||||
) {
|
||||
prevdbInfo = dbInfo;
|
||||
|
||||
String prefix = null;
|
||||
if (dbInfo.contains("*"))
|
||||
|
@ -3261,7 +3257,6 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
Env.setContext(ctx, curWindowNo, "Value", "");
|
||||
Env.setContext(ctx, curWindowNo, "Name", "");
|
||||
}
|
||||
prevdbInfo = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue