N°7534 - Request to Improve the Display of an Inline Attachment (#664)

This commit is contained in:
Benjamin Dalsass
2024-08-19 11:03:06 +02:00
committed by GitHub
parent e8d059fa77
commit 1d3c71fd10
7 changed files with 221 additions and 54 deletions

View File

@@ -1241,6 +1241,19 @@ class ObjectController extends BrickController
break;
case 'display':
// Preparing redirection
// - Route
$aRouteParams = array(
'sObjectClass' => 'Attachment',
'sObjectId' => $this->oRequestManipulatorHelper->ReadParam('sAttachmentId', null),
'sObjectField' => 'contents',
);
$oResponse = $this->ForwardToRoute('p_object_document_display', $aRouteParams, $oRequest->query->all());
break;
default:
throw new HttpException(Response::HTTP_FORBIDDEN, Dict::S('Error:HTTP:400'));
break;