N°7157 - Fix trigger init to null when not passed

This commit is contained in:
Molkobain
2024-02-27 21:46:04 +01:00
parent 2b172d6e19
commit 940833a66f

View File

@@ -433,7 +433,7 @@ class ActionEmail extends ActionNotification
*/
protected function FindRecipients($sRecipAttCode, $aArgs)
{
$oTrigger = $aArgs['trigger->object()'];
$oTrigger = $aArgs['trigger->object()'] ?? null;
$sOQL = $this->Get($sRecipAttCode);
if (utils::IsNullOrEmptyString($sOQL)) return '';