N°7704 Fix missing namespace for constant EVENT_DOWNLOAD_DOCUMENT

This commit is contained in:
Timothee
2024-11-13 14:39:23 +01:00
parent e9f16935b6
commit 9cffd17e19
3 changed files with 3 additions and 3 deletions

View File

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