mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 00:02:17 +02:00
N°1386 - Advanced Search: Navigation in list - Browse this list
This commit is contained in:
10
pages/UI.php
10
pages/UI.php
@@ -435,9 +435,17 @@ try
|
||||
throw new SecurityException('User not allowed to view this object', array('class' => $sClass, 'id' => $id));
|
||||
}
|
||||
|
||||
//N°1386 - Advanced Search: Navigation in list - Browse this list
|
||||
$sFilter = utils::ReadParam('filter', null, false, 'raw');
|
||||
$sList = utils::ReadPostedParam('listNavigation', null, false, 'string');
|
||||
$aList = [];
|
||||
if ($sList != null) {
|
||||
$aList = json_decode($sList);
|
||||
}
|
||||
|
||||
$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, $oP->IsPrintableVersion() ? cmdbAbstractObject::ENUM_DISPLAY_MODE_PRINT : cmdbAbstractObject::ENUM_DISPLAY_MODE_VIEW));
|
||||
$oP->SetContentLayout(PageContentFactory::MakeForObjectDetails($oObj, $oP->IsPrintableVersion() ? cmdbAbstractObject::ENUM_DISPLAY_MODE_PRINT : cmdbAbstractObject::ENUM_DISPLAY_MODE_VIEW, $sFilter, $aList));
|
||||
$oObj->DisplayDetails($oP);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user