N°4356 Fix portal attachment download

Was opening the attachment directly in the browser (HTTP header Content-Disposition set to 'inline' instead of 'download')
This commit is contained in:
Pierre Goiffon
2021-10-13 11:49:22 +02:00
parent 2bc61caab1
commit b5369a0c03
3 changed files with 30 additions and 3 deletions

View File

@@ -344,7 +344,7 @@ class ObjectController extends BrickController
'sObjectClass' => get_class($oTargetObject),
);
return $this->ForwardFromRoute('p_object_create', $aRouteParams, $oRequest->query->all());
return $this->ForwardToRoute('p_object_create', $aRouteParams, $oRequest->query->all());
}
/**
@@ -1182,7 +1182,7 @@ class ObjectController extends BrickController
'sObjectField' => 'contents',
);
$oResponse = $this->forward($this->GetControllerNameFromRoute('p_object_document_download'), $aRouteParams, $oRequest->query->all());
$oResponse = $this->ForwardToRoute('p_object_document_download', $aRouteParams, $oRequest->query->all());
break;