3540 - Migrate printable version of an object - management of the activities of an object

This commit is contained in:
acognet
2021-01-06 09:40:05 +01:00
parent 1353917994
commit 3791306be7
11 changed files with 189 additions and 275 deletions

View File

@@ -481,7 +481,7 @@ try
$sClassLabel = MetaModel::GetName($sClass);
$oP->set_title(Dict::Format('UI:DetailsPageTitle', $oObj->GetRawName(), $sClassLabel)); // Set title will take care of the encoding
$oP->SetContentLayout(PageContentFactory::MakeForObjectDetails($oObj, cmdbAbstractObject::ENUM_OBJECT_MODE_VIEW));
$oP->SetContentLayout(PageContentFactory::MakeForObjectDetails($oObj, $oP->IsPrintableVersion()?cmdbAbstractObject::ENUM_OBJECT_MODE_PRINT:cmdbAbstractObject::ENUM_OBJECT_MODE_VIEW));
$oObj->DisplayDetails($oP);
}
}