mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3416 Fix DocumentFile preview not working anymore
Was caused by X-Frame-Options http header added with N°3317
This commit is contained in:
@@ -961,6 +961,7 @@ try
|
|||||||
if (!empty($sClass) && ($sClass != 'InlineImage') && !empty($id) && !empty($sField))
|
if (!empty($sClass) && ($sClass != 'InlineImage') && !empty($id) && !empty($sField))
|
||||||
{
|
{
|
||||||
$oKPI = new ExecutionKPI();
|
$oKPI = new ExecutionKPI();
|
||||||
|
$oPage->add_header('X-Frame-Options:'); // resets header, see N°3416
|
||||||
ormDocument::DownloadDocument($oPage, $sClass, $id, $sField, 'inline');
|
ormDocument::DownloadDocument($oPage, $sClass, $id, $sField, 'inline');
|
||||||
$oKPI->ComputeAndReport('Data fetch and format');
|
$oKPI->ComputeAndReport('Data fetch and format');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user