From 08f6df1992b2cb6c447e5b7cc32021c170407a4d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 21 Oct 2013 10:55:42 -0500 Subject: [PATCH] IDEMPIERE-1429 Report Wizard is able to change system templates from within client --- .../src/org/adempiere/webui/window/ZkReportViewer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java index 6545a586c5..35e3aa896b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java @@ -671,7 +671,10 @@ public class ZkReportViewer extends Window implements EventListener, ITab .append(m_reportEngine.getRowCount()); statusBar.setStatusLine(sb.toString()); // - bWizard.setDisabled( (m_reportEngine.getPrintFormat() == null || m_reportEngine.getPrintFormat().getAD_Client_ID() == 0) ); + bWizard.setDisabled( + ( m_reportEngine.getPrintFormat() == null + || (m_reportEngine.getPrintFormat().getAD_Client_ID() == 0 && Env.getAD_Client_ID(Env.getCtx()) != 0) + || m_reportEngine.getPrintFormat().isForm())); } // revalidate /**