Skip to content

Commit c1c8ed9

Browse files
[+] Add error text CactuseSecurity#2949
1 parent dd0e832 commit c1c8ed9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

roles/database/files/sql/idempotent/fworch-texts.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,8 @@ INSERT INTO txt VALUES ('interface_contain_nwarea','German','Schnittstellen d&uu
11601160
INSERT INTO txt VALUES ('interface_contain_nwarea','English','Interfaces must not contain network areas');
11611161
INSERT INTO txt VALUES ('direction_contain_nwarea','German','Quelle und Ziel dürfen nicht gleichzeitig einen Netzbereich enthalten');
11621162
INSERT INTO txt VALUES ('direction_contain_nwarea','English','Source and destination must not contain a network area at the same time');
1163+
INSERT INTO txt VALUES ('only_common_service', 'German', 'Dieser Netzbereich kann nur in der Registerkarte Gemeinsame Dienste verwendet werden.');
1164+
INSERT INTO txt VALUES ('only_common_service', 'English', 'This network area can only be used in common services tab');
11631165
INSERT INTO txt VALUES ('delete_interface', 'German', 'Schnittstelle löschen');
11641166
INSERT INTO txt VALUES ('delete_interface', 'English', 'Delete Interface');
11651167
INSERT INTO txt VALUES ('insert_forbidden', 'German', 'Einfügen verboten');

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ public bool NetworkAreaUseAllowed(List<ModellingNetworkArea> networkAreas, Direc
10791079
return true;
10801080
}
10811081

1082-
reason.Text = "This network area can only be used in 'common services tab'";
1082+
reason.Text = userConfig.GetText("only_common_service");
10831083
return false;
10841084
}
10851085

0 commit comments

Comments
 (0)