From a77a991b9f7a9b263b98647590a615d49d80f29c Mon Sep 17 00:00:00 2001 From: Diego Ruiz <12065321+d-ruiz@users.noreply.github.com> Date: Thu, 30 Apr 2020 22:07:24 +0200 Subject: [PATCH] =?UTF-8?q?IDEMPIERE-1035=20hard=20to=20find=20exceptions?= =?UTF-8?q?=20when=20using=20restrictive=20rights=20=E2=80=A6=20(#21)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * IDEMPIERE-1035 hard to find exceptions when using restrictive rights - Improve not access to workflow message * IDEMPIERE-1035 hard to find exceptions when using restrictive rights - Improve not access to workflow message --- .../adempiere/webui/adwindow/AbstractADWindowContent.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index 75398cd23e..676d719cc9 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -2804,7 +2804,12 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements if (adTabbox.getSelectedGridTab().getRecord_ID() <= 0) return; else - AEnv.startWorkflowProcess(adTabbox.getSelectedGridTab().getAD_Table_ID(), adTabbox.getSelectedGridTab().getRecord_ID()); + try { + AEnv.startWorkflowProcess(adTabbox.getSelectedGridTab().getAD_Table_ID(), adTabbox.getSelectedGridTab().getRecord_ID()); + } catch (Exception e) { + CLogger.get().saveError("Error", e); + throw new ApplicationException(e.getMessage(), e); + } } } //