From 6cb142482481f78a21d5763fb57ec8d6acfcf7ab Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 Apr 2023 15:33:14 +0200 Subject: [PATCH] Removed a message non expected in a lot of cases --- .../triggers/interface_90_modSociete_ContactRoles.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/core/triggers/interface_90_modSociete_ContactRoles.class.php b/htdocs/core/triggers/interface_90_modSociete_ContactRoles.class.php index cecb7f7cb98..9505196dd49 100644 --- a/htdocs/core/triggers/interface_90_modSociete_ContactRoles.class.php +++ b/htdocs/core/triggers/interface_90_modSociete_ContactRoles.class.php @@ -107,9 +107,13 @@ class InterfaceContactRoles extends DolibarrTriggers } } + // We disable this message, it shows the message in api, public page or batch actions when it should not. + // Message setting must be done by the calling GUI page and not set inside the trigger. + /* if ($nb > 0) { setEventMessages($langs->trans('ContactAddedAutomatically', $nb), null, 'mesgs'); } + */ } } }