N°4756 - Ease extensibility for CRUD operations : Events renamed

This commit is contained in:
Eric Espie
2022-12-22 15:22:06 +01:00
parent 44fac686f9
commit f378fd3d72
7 changed files with 12 additions and 12 deletions

View File

@@ -219,7 +219,7 @@ class ormDocument
'object' => $oObj,
'document' => $oDocument,
);
EventService::FireEvent(new EventData(EVENT_SERVICE_DOWNLOAD_DOCUMENT, $sClass, $aEventData));
EventService::FireEvent(new EventData(EVENT_DOWNLOAD_DOCUMENT, $sClass, $aEventData));
$oPage->TrashUnexpectedOutput();
$oPage->SetContentType($oDocument->GetMimeType());
$oPage->SetContentDisposition($sContentDisposition,$oDocument->GetFileName());