mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°2250 - DisplayObject with ormLinkSet ignore Removed
This commit is contained in:
@@ -89,7 +89,9 @@ class BlockLinkSetDisplayAsProperty extends UIContentBlock
|
||||
$sTargetField = LinkSetModel::GetTargetField($this->oAttribute);
|
||||
|
||||
// Get objects from linked data
|
||||
$this->aObjectsData = LinkSetRepository::LinksDbSetToTargetObjectArray($this->oValue, $this->sTargetClass, $sTargetField);
|
||||
$aObjectsData = [];
|
||||
LinkSetRepository::LinksDbSetToTargetObjectArray($this->oValue, false, $aObjectsData, $this->sTargetClass, $sTargetField);
|
||||
$this->aObjectsData = array_values($aObjectsData);
|
||||
|
||||
// Twig environment
|
||||
$this->oTwigEnv = TwigHelper::GetTwigEnvironment(TwigHelper::ENUM_TEMPLATES_BASE_PATH_BACKOFFICE);
|
||||
|
||||
Reference in New Issue
Block a user