diff --git a/datamodels/2.x/itop-config/src/Controller/ConfigEditorController.php b/datamodels/2.x/itop-config/src/Controller/ConfigEditorController.php index e2d37268e..771f1423b 100644 --- a/datamodels/2.x/itop-config/src/Controller/ConfigEditorController.php +++ b/datamodels/2.x/itop-config/src/Controller/ConfigEditorController.php @@ -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 diff --git a/datamodels/2.x/itop-config/templates/Edit.html.twig b/datamodels/2.x/itop-config/templates/Edit.html.twig index 5fedcd02a..2e8665b9d 100644 --- a/datamodels/2.x/itop-config/templates/Edit.html.twig +++ b/datamodels/2.x/itop-config/templates/Edit.html.twig @@ -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 %}