IDEMPIERE-6264 - Error message on BEFORE_PROCESS and AFTER_PROCESS is shown wrongly (#2484)

This commit is contained in:
Diego Ruiz 2024-10-11 03:51:10 +02:00 committed by Carlos Ruiz
parent b9cfc8c6e6
commit 70cde611a0
1 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ public abstract class SvrProcess implements ProcessCall
@SuppressWarnings("unchecked")
List<String> errorsBP = (List<String>) eventBP.getProperty(IEventManager.EVENT_ERROR_MESSAGES);
if (errorsBP != null && !errorsBP.isEmpty()) {
msg = "@Error@:" + errorsBP.get(0);
msg = "@Error@" + errorsBP.get(0);
} else {
msg = doIt();
if (msg != null && ! msg.startsWith("@Error@")) {
@ -259,7 +259,7 @@ public abstract class SvrProcess implements ProcessCall
@SuppressWarnings("unchecked")
List<String> errorsAP = (List<String>) eventAP.getProperty(IEventManager.EVENT_ERROR_MESSAGES);
if (errorsAP != null && !errorsAP.isEmpty()) {
msg = "@Error@:" + errorsAP.get(0);
msg = "@Error@" + errorsAP.get(0);
}
}
}