From ea9d9fb36bda3521238d382caa009d58d170772d Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Tue, 5 Jan 2010 07:03:08 +0000 Subject: [PATCH] integrate revision 11218 Fix zkwebui: Second tab must not enable history button Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2923033 Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2923033 --- .../adempiere/webui/panel/AbstractADWindowPanel.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/panel/AbstractADWindowPanel.java b/zkwebui/WEB-INF/src/org/adempiere/webui/panel/AbstractADWindowPanel.java index c20ed3f7ed..a3ca491147 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/panel/AbstractADWindowPanel.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/panel/AbstractADWindowPanel.java @@ -988,6 +988,16 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To } toolbar.enablePrint(curTab.isPrinted()); + + if (gridWindow.isTransaction() && isFirstTab()) + { + toolbar.enableHistoryRecords(true); + } + else + { + toolbar.enableHistoryRecords(false); + } + } /**