Merge remote-tracking branch 'origin/support/3.1' into develop

This commit is contained in:
Molkobain
2023-10-13 10:13:25 +02:00
2 changed files with 6 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ use ReflectionClass;
use SetupPage;
use SetupUtils;
use Twig\Error\Error;
use Twig\Error\SyntaxError;
use utils;
use WebPage;
use ZipArchive;
@@ -662,6 +663,9 @@ abstract class Controller extends AbstractController
{
return $this->m_oTwig->render($sName.'.'.$sTemplateFileExtension.'.twig', $aParams);
}
catch (SyntaxError $e) {
IssueLog::Error($e->getMessage().' - file: '.$e->getFile().'('.$e->getLine().')');
}
catch (Error $e) {
if (strpos($e->getMessage(), 'Unable to find template') === false)
{

View File

@@ -146,6 +146,8 @@ abstract class ItopDataTestCase extends ItopTestCase
EventService::UnRegisterListener($sListenerId);
}
CMDBObject::SetCurrentChange(null);
parent::tearDown();
}