Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2013-08-25 23:20:40 +0000
committerGerrit Code Review @ Eclipse.org2013-08-27 14:28:22 +0000
commitf812a1291e9ef912d983ced53e6f263c0d8f412b (patch)
tree40f442f145d789fb4be2ca4692983ea39e348b50 /plugins/org.eclipse.osee.framework.skynet.core/src
parent83ca32866c84149529d4e315c3d6dd964b350093 (diff)
downloadorg.eclipse.osee-f812a1291e9ef912d983ced53e6f263c0d8f412b.tar.gz
org.eclipse.osee-f812a1291e9ef912d983ced53e6f263c0d8f412b.tar.xz
org.eclipse.osee-f812a1291e9ef912d983ced53e6f263c0d8f412b.zip
bug[ats_U8D1R]: Not able to re-create a previously deleted relation
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core/src')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/relation/RelationManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/relation/RelationManager.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/relation/RelationManager.java
index 88f8be96ff1..e3b84b6f38e 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/relation/RelationManager.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/relation/RelationManager.java
@@ -534,6 +534,9 @@ public class RelationManager {
getOrCreate(artifactA.getArtId(), artifactB.getArtId(), artifactA.getBranch(), relationType, 0, 0,
rationale, ModificationType.NEW);
relation.setDirty();
+ if (relation.isDeleted()) {
+ relation.undelete();
+ }
RelationTypeSideSorter sorter = createTypeSideSorter(artifactA, relationTypeToken, RelationSide.SIDE_B);
sorter.addItem(sorterId, artifactB);

Back to the top