Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/event/handlers/ArtifactRemoteEventHandler.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/event/handlers/ArtifactRemoteEventHandler.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/event/handlers/ArtifactRemoteEventHandler.java
index ce1cff7f3fe..611660bff05 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/event/handlers/ArtifactRemoteEventHandler.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/event/handlers/ArtifactRemoteEventHandler.java
@@ -193,14 +193,11 @@ public class ArtifactRemoteEventHandler implements EventHandlerRemote<RemotePers
RelationEventType eventType = guidArt.getModType();
switch (eventType) {
case Added:
- if (relation == null) {
+ if (relation == null || relation.getModificationType() == ModificationType.DELETED || relation.getModificationType() == ModificationType.ARTIFACT_DELETED) {
+ ApplicabilityId appId = relation == null ? ApplicabilityId.BASE : relation.getApplicabilityId();
relation = RelationManager.getOrCreate(guidArt.getArtAId(), guidArt.getArtBId(), branch,
relationType, guidArt.getRelationId(), guidArt.getGammaId(), guidArt.getRationale(),
- ModificationType.NEW, ApplicabilityId.BASE);
- } else if (relation.getModificationType() == ModificationType.DELETED || relation.getModificationType() == ModificationType.ARTIFACT_DELETED) {
- relation = RelationManager.getOrCreate(guidArt.getArtAId(), guidArt.getArtBId(), branch,
- relationType, guidArt.getRelationId(), guidArt.getGammaId(), guidArt.getRationale(),
- ModificationType.NEW, relation.getApplicabilityId());
+ ModificationType.NEW, appId);
}
break;
case ModifiedRationale:

Back to the top