mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°5957 - Relations: Refactor \DisplayBlock to correctly handle 'listInObject' style
This commit is contained in:
@@ -71,6 +71,10 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory
|
||||
public static function MakeForResult(WebPage $oPage, string $sListId, DBObjectSet $oSet, $aExtraParams = array())
|
||||
{
|
||||
$oDataTable = DataTableUIBlockFactory::MakeForRendering($sListId, $oSet, $aExtraParams);
|
||||
if ($oPage->IsPrintableVersion()) {
|
||||
$oDataTable->AddOption('printVersion', true);
|
||||
}
|
||||
|
||||
return self::RenderDataTable($oDataTable, 'list', $oPage, $sListId, $oSet, $aExtraParams);
|
||||
}
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ abstract class AbstractBlockLinkSetViewTable extends UIContentBlock
|
||||
$oLinkSet = $oOrmLinkSet->ToDBObjectSet(utils::ShowObsoleteData());
|
||||
|
||||
// add list block
|
||||
$oBlock = new \DisplayBlock($oLinkSet->GetFilter(), 'list', false);
|
||||
$oBlock = new DisplayBlock($oLinkSet->GetFilter(), 'listInObject', false);
|
||||
$this->AddSubBlock($oBlock->GetRenderContent($oPage, $this->GetExtraParam(), $this->sTableId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user