IDEMPIERE-3550 Window Title Logic is ignored when using Undo button on sub tab
This commit is contained in:
parent
f66e6a82c4
commit
2b6321b8d9
|
@ -692,9 +692,15 @@ public final class AEnv
|
|||
sb.append(prefix);
|
||||
if (windowNo > 0){
|
||||
sb.append(Env.getContext(ctx, windowNo, "_WinInfo_WindowName", false)).append(": ");
|
||||
final String documentNo = Env.getContext(ctx, windowNo, "DocumentNo", false);
|
||||
final String value = Env.getContext(ctx, windowNo, "Value", false);
|
||||
final String name = Env.getContext(ctx, windowNo, "Name", false);
|
||||
String documentNo = Env.getContext(ctx, windowNo, "DocumentNo", false);
|
||||
if (Util.isEmpty(documentNo)) // try first tab
|
||||
documentNo = Env.getContext(ctx, windowNo, 0, "DocumentNo", false);
|
||||
String value = Env.getContext(ctx, windowNo, "Value", false);
|
||||
if (Util.isEmpty(value)) // try first tab
|
||||
value = Env.getContext(ctx, windowNo, 0, "Value", false);
|
||||
String name = Env.getContext(ctx, windowNo, "Name", false);
|
||||
if (Util.isEmpty(name)) // try first tab
|
||||
name = Env.getContext(ctx, windowNo, 0, "Name", false);
|
||||
if(!"".equals(documentNo)) {
|
||||
sb.append(documentNo).append(" ");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue