mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°4260 - Fix display of log attributes in list
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Combodo\iTop\Renderer;
|
||||
|
||||
use Combodo\iTop\Application\TwigBase\Twig\TwigHelper;
|
||||
use Combodo\iTop\Application\UI\Base\iUIBlock;
|
||||
use Combodo\iTop\Application\UI\Base\UIBlock;
|
||||
use utils;
|
||||
|
||||
/**
|
||||
@@ -157,7 +158,24 @@ class BlockRenderer
|
||||
|
||||
return trim($sOutput);
|
||||
}
|
||||
public function RenderJsInlineRecursively(UIBlock $oBlock, string $sType)
|
||||
{
|
||||
$sOutput = '';
|
||||
if(!empty($oBlock->GetJsTemplatesRelPath($sType)))
|
||||
{
|
||||
$sOutput = trim(TwigHelper::RenderTemplate(
|
||||
static::$oTwigEnv,
|
||||
array_merge(['oUIBlock' => $oBlock], $this->aContextParams, $oBlock->GetParameters()),
|
||||
$oBlock->GetJsTemplatesRelPath($sType),
|
||||
$sType
|
||||
));
|
||||
}
|
||||
foreach ($oBlock->GetSubBlocks() as $oSubBlock){
|
||||
$sOutput = $sOutput . $this->RenderJsInlineRecursively($oSubBlock, $sType);
|
||||
}
|
||||
|
||||
return trim($sOutput);
|
||||
}
|
||||
/**
|
||||
* Return the raw output of the CSS template
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user