From 6f1a51139c12a03ca58d35f28a555f558308c4eb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Aug 2020 12:48:56 +0200 Subject: [PATCH] Fix load lang --- .../triggers/interface_50_modAgenda_ActionsAuto.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php index c2843716cea..cd7b0c8afb0 100644 --- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php +++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php @@ -786,8 +786,8 @@ class InterfaceActionsAuto extends DolibarrTriggers // Note that these key can be set in agenda setup, only if defined into c_action_trigger // Load translation files required by the page if (empty($object->actionmsg2)) { + $langs->loadLangs(array("agenda", "other")); if ($langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref)) != $action."InDolibarr") { // specific translation key - $langs->loadLangs(array("agenda", "other")); $object->actionmsg2 = $langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref)); } else { // generic translation key $tmp = explode('_', $action); @@ -795,8 +795,8 @@ class InterfaceActionsAuto extends DolibarrTriggers } } if (empty($object->actionmsg)) { + $langs->loadLangs(array("agenda", "other")); if ($langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref)) != $action."InDolibarr") { // specific translation key - $langs->loadLangs(array("agenda", "other")); $object->actionmsg = $langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref)); } else { // generic translation key $tmp = explode('_', $action);