N°4756 - Ease extensibility for CRUD operations : Event Service - Fix RegisterListener() signature and calls

This commit is contained in:
Eric Espie
2023-02-14 11:26:47 +01:00
parent 8b18fd7cc0
commit c0589715c1
2 changed files with 2 additions and 2 deletions

View File

@@ -3784,7 +3784,7 @@ EOF;
$sEventSource = $aListener['source'];
$sContext = $aListener['context'];
$sRank = $aListener['rank'];
$sRegister .= "\nCombodo\iTop\Service\Events\EventService::RegisterListener(\"$sEventName\", '$sClassName::$sCallback', $sEventSource, null, $sContext, $sRank, '$sModuleId');";
$sRegister .= "\nCombodo\iTop\Service\Events\EventService::RegisterListener(\"$sEventName\", '$sClassName::$sCallback', $sEventSource, [], $sContext, $sRank, '$sModuleId');";
$sCallbackFct = $aListener['content'];
$sMethods .= "\n $sCallbackFct\n\n";
}