Skip to content

Commit 85d2d93

Browse files
[~] Added error message for appservers with empty name that already exist CactuseSecurity#3075
1 parent 4107338 commit 85d2d93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roles/lib/files/FWO.Services/ModellingAppServerHandler.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using NetTools;
1+
using NetTools;
22
using FWO.Config.Api;
33
using FWO.Basics;
44
using FWO.Data;
@@ -56,6 +56,10 @@ public async Task<bool> Save()
5656
DisplayMessageInUi(null, userConfig.GetText("edit_app_server"), $"{userConfig.GetText("E9010")} {DisplayBase.DisplayIp(ActAppServer.Ip, ActAppServer.IpEnd)} in {ExistingAppServerName}", true);
5757
}
5858
return false;
59+
}else if(string.IsNullOrEmpty(ExistingAppServerName) && string.IsNullOrEmpty(ActAppServer.Name))
60+
{
61+
string message = $"{userConfig.GetText("E9018")} Name: \"\"";
62+
DisplayMessageInUi(null, userConfig.GetText("edit_app_server"), message, true);
5963
}
6064
else
6165
{

0 commit comments

Comments
 (0)