N°6759 - Fix alerts html

This commit is contained in:
Timothee
2025-08-22 15:03:13 +02:00
parent 338b47d8f6
commit f0ebf02f77
2 changed files with 4 additions and 5 deletions

View File

@@ -69,7 +69,6 @@ class ConfigEditorController extends Controller
throw new Exception(Dict::S('config-no-change'), iTopConfigValidator::CONFIG_INFO);
}
$oValidator = new iTopConfigValidator();
$sNewConfig = str_replace("\r\n", "\n", $sNewConfig);
$oValidator->Validate($sNewConfig);// throws exceptions

View File

@@ -1,14 +1,14 @@
{% for sError in aErrors %}
{% UIAlert ForDanger{sTitle: sError} %}{% EndUIAlert %}
{% UIAlert ForDanger{sContent: sError} %}{% EndUIAlert %}
{% endfor %}
{% for sWarning in aWarnings %}
{% UIAlert ForWarning{sTitle: sWarning} %}{% EndUIAlert %}
{% UIAlert ForWarning{sContent: sWarning} %}{% EndUIAlert %}
{% endfor %}
{% for sNotice in aNotices %}
{% UIAlert ForInformation{sTitle: sNotice} %}{% EndUIAlert %}
{% UIAlert ForInformation{sContent: sNotice} %}{% EndUIAlert %}
{% endfor %}
{% for sSuccess in aSuccesses %}
{% UIAlert ForSuccess{sTitle: sSuccess} %}{% EndUIAlert %}
{% UIAlert ForSuccess{sContent: sSuccess} %}{% EndUIAlert %}
{% endfor %}
{% UITitle ForPage {'sTitle':'config-edit-title'|dict_s} %}{% EndUITitle %}