mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 14:08:46 +02:00
N°3423 - Allow AttributeImage / AttributeDocument content to be cached by the browser (portal)
This commit is contained in:
@@ -373,8 +373,14 @@ class UserProfileBrickController extends BrickController
|
||||
$aFormData['error'] = $e->GetMessage();
|
||||
}
|
||||
|
||||
// TODO: This should be changed when refactoring the ormDocument GetDisplayUrl() and GetDownloadUrl() in iTop 3.0
|
||||
$aFormData['picture_url'] = $oUrlGenerator->generate('p_object_document_display', array('sObjectClass' => get_class($oCurContact), 'sObjectId' => $oCurContact->GetKey(), 'sObjectField' => $sPictureAttCode, 'cache' => 86400, 't' => time()));
|
||||
$oOrmDoc = $oCurContact->Get($sPictureAttCode);
|
||||
$aFormData['picture_url'] = $oUrlGenerator->generate('p_object_document_display', [
|
||||
'sObjectClass' => get_class($oCurContact),
|
||||
'sObjectId' => $oCurContact->GetKey(),
|
||||
'sObjectField' => $sPictureAttCode,
|
||||
'cache' => 86400,
|
||||
's' => $oOrmDoc->GetSignature(),
|
||||
]);
|
||||
$aFormData['validation'] = array(
|
||||
'valid' => true,
|
||||
'messages' => array(),
|
||||
|
||||
Reference in New Issue
Block a user