mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
N°7534 - Request to Improve the Display of an Inline Attachment (#664)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user