N°3522 Fix IssueLog on Twig error in a Ajax context

This commit is contained in:
Pierre Goiffon
2021-03-15 14:53:24 +01:00
parent 8b47536835
commit fccc57458c

View File

@@ -142,7 +142,10 @@ class TwigHelper
->SetIsClosable(false)
->SetIsCollapsible(false); // not rendering JS so...
IssueLog::Error($sPath.$oTwigException->getMessage());
IssueLog::Error('Error occurred on TWIG rendering', null, [
'twig_path' => $sPath,
'twig_exception_message' => $oTwigException->getMessage(),
]);
return BlockRenderer::RenderBlockTemplates($oAlert);
} else {