Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2011-01-24 22:02:34 +0000
committerRyan D. Brooks2011-01-24 22:02:34 +0000
commite7c5221935f7778078012300624dd2a3c99eb12b (patch)
treedd5045b3ca74a54307379325cf3e08fecd7d6948
parent1f18c8620e8cf67a2ae3764ca164981246ac3d91 (diff)
downloadorg.eclipse.osee-e7c5221935f7778078012300624dd2a3c99eb12b.tar.gz
org.eclipse.osee-e7c5221935f7778078012300624dd2a3c99eb12b.tar.xz
org.eclipse.osee-e7c5221935f7778078012300624dd2a3c99eb12b.zip
feature: Fix Workflow Editor transition combo had duplicated names
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
index cd0f6f8aa6e..62257b9d9e3 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
@@ -526,13 +526,15 @@ public class SMAWorkFlowSection extends SectionPart {
}
StateDefinition currState = sma.getStateDefinition();
if (currState.isCompletedPage()) {
- if (!allPages.contains(sma.getCompletedFromState())) {
- allPages.add(sma.getWorkDefinition().getStateByName(sma.getCompletedFromState()));
+ StateDefinition completedFromState = sma.getWorkDefinition().getStateByName(sma.getCompletedFromState());
+ if (!allPages.contains(completedFromState)) {
+ allPages.add(completedFromState);
}
}
if (currState.isCancelledPage()) {
- if (!allPages.contains(sma.getCancelledFromState())) {
- allPages.add(sma.getWorkDefinition().getStateByName(sma.getCancelledFromState()));
+ StateDefinition cancelledFromState = sma.getWorkDefinition().getStateByName(sma.getCancelledFromState());
+ if (!allPages.contains(cancelledFromState)) {
+ allPages.add(cancelledFromState);
}
}
transitionToStateCombo.setInput(allPages);

Back to the top