N°3766 - Migrate module to new UIBlock system : Gantt view - fix error message when the class doesn't exist

This commit is contained in:
acognet
2021-05-18 13:46:07 +02:00
parent e53da47647
commit e9648ad75e

View File

@@ -1166,6 +1166,7 @@ EOF
$sHtml = ConsoleBlockRenderer::RenderBlockTemplateInPage($oPage, $oBlock);
$sHtml = str_replace("\n", '', $sHtml);
$sHtml = str_replace("\r", '', $sHtml);
$sHtml = str_replace("'", "\'", $sHtml);
$oPage->add_script("$('#dashlet_$sDashletId').html('$sHtml');");
}
if ($oDashlet->IsFormRedrawNeeded()) {