mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
N°8772 - Dynamic debug and error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user