N°8772 - Dynamic debug and error

This commit is contained in:
Eric Espie
2025-11-07 11:24:31 +01:00
parent a448f668bc
commit cfdf4121d3
3 changed files with 12 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ class FormsException extends Exception
{
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null, array $aContext = [])
{
IssueLog::Exception(get_class($this).' occurs', $this, null, $aContext);
parent::__construct($message, $code, $previous);
IssueLog::Exception(get_class($this).' occurs', $this, null, $aContext);
}
}

View File

@@ -1,11 +1,13 @@
{# @copyright Copyright (C) 2010-2025 Combodo SARL #}
{# @license http://opensource.org/licenses/AGPL-3.0 #}
{% if aProfilesInfo is not empty %}
{% UIPanel Neutral { sTitle:'Debug' } %}
{% for aProfileInfo in aProfilesInfo %}
{% set aProfileData = aProfileInfo.aProfileData %}
{{ include(aProfileInfo.sTemplate) }}
{% endfor %}
{% EndUIPanel %}
{% endif %}
{% UIContentBlock Standard { sId:"turbo_itop_profiler", aContainerClasses:['ibo-turbo-itop'] } %}
{% if aProfilesInfo is not empty %}
{% UIPanel Neutral { sTitle:'Debug' } %}
{% for aProfileInfo in aProfilesInfo %}
{% set aProfileData = aProfileInfo.aProfileData %}
{{ include(aProfileInfo.sTemplate) }}
{% endfor %}
{% EndUIPanel %}
{% endif %}
{% EndUIContentBlock %}

View File

@@ -1,7 +1,7 @@
{# @copyright Copyright (C) 2010-2025 Combodo SARL #}
{# @license http://opensource.org/licenses/AGPL-3.0 #}
{% UIContentBlock Standard { sId:"turbo_itop_error" } %}
{% UIContentBlock Standard { sId:"turbo_itop_error", aContainerClasses:['ibo-turbo-itop'] } %}
{% if sControllerError %}
{% UIAlert ForDanger { sTitle:'', sContent:sControllerError } %}{% EndUIAlert %}
{% endif %}