Skip to content

Commit 324f76c

Browse files
authored
Merge branch 'develop' into CactuseSecurity#2609--App-modelling--answering-interface-forgets-former-edits
2 parents 44c7a2d + 5e43d58 commit 324f76c

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

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

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,18 +1091,6 @@ public async Task<bool> Save(bool noCheck = false)
10911091
}
10921092
if(noCheck || CheckConn())
10931093
{
1094-
if(!SrcReadOnly)
1095-
{
1096-
SyncSrcChanges();
1097-
}
1098-
if(!DstReadOnly)
1099-
{
1100-
SyncDstChanges();
1101-
}
1102-
if(!SvcReadOnly)
1103-
{
1104-
SyncSvcChanges();
1105-
}
11061094
ActConn.SyncState(DummyAppRole.Id);
11071095
if(AddMode)
11081096
{
@@ -1298,24 +1286,23 @@ await LogChange(ModellingTypes.ChangeType.Insert, ModellingTypes.ModObjectType.C
12981286
$"New {(ActConn.IsInterface? "Interface" : "Connection")}: {ActConn.Name}", AppId);
12991287
if(ActConn.UsedInterfaceId == null || ActConn.DstFromInterface)
13001288
{
1301-
await AddNwObjects(ModellingAppServerWrapper.Resolve(ActConn.SourceAppServers).ToList(),
1302-
ModellingAppRoleWrapper.Resolve(ActConn.SourceAppRoles).ToList(),
1303-
ModellingNetworkAreaWrapper.Resolve(ActConn.SourceAreas).ToList(),
1304-
ModellingNwGroupWrapper.Resolve(ActConn.SourceOtherGroups).ToList(),
1305-
ModellingTypes.ConnectionField.Source);
1289+
await AddNwObjects(SrcAppServerToAdd,
1290+
SrcAppRolesToAdd,
1291+
SrcAreasToAdd,
1292+
SrcNwGroupsToAdd,
1293+
ModellingTypes.ConnectionField.Source);
13061294
}
13071295
if(ActConn.UsedInterfaceId == null || ActConn.SrcFromInterface)
13081296
{
1309-
await AddNwObjects(ModellingAppServerWrapper.Resolve(ActConn.DestinationAppServers).ToList(),
1310-
ModellingAppRoleWrapper.Resolve(ActConn.DestinationAppRoles).ToList(),
1311-
ModellingNetworkAreaWrapper.Resolve(ActConn.DestinationAreas).ToList(),
1312-
ModellingNwGroupWrapper.Resolve(ActConn.DestinationOtherGroups).ToList(),
1313-
ModellingTypes.ConnectionField.Destination);
1297+
await AddNwObjects(DstAppServerToAdd,
1298+
DstAppRolesToAdd,
1299+
DstAreasToAdd,
1300+
DstNwGroupsToAdd,
1301+
ModellingTypes.ConnectionField.Destination);
13141302
}
13151303
if(ActConn.UsedInterfaceId == null)
13161304
{
1317-
await AddSvcObjects(ModellingServiceWrapper.Resolve(ActConn.Services).ToList(),
1318-
ModellingServiceGroupWrapper.Resolve(ActConn.ServiceGroups).ToList());
1305+
await AddSvcObjects(SvcToAdd, SvcGrpToAdd);
13191306
}
13201307
ActConn.Creator = userConfig.User.Name;
13211308
ActConn.CreationDate = DateTime.Now;

0 commit comments

Comments
 (0)