diff --git a/module/ai/view/editmodel.html.php b/module/ai/view/editmodel.html.php
index 87b011d598..21bef759c4 100644
--- a/module/ai/view/editmodel.html.php
+++ b/module/ai/view/editmodel.html.php
@@ -98,7 +98,7 @@ $(function() {
}
else
{
- $.zui.messager.danger(data.message);
+ $.zui.messager.danger(data.message.replace('
', ' '));
}
},
complete: function() {$.enableForm('#mainForm');}