Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-09-16 16:53:40 -0400
committerRyan D. Brooks2010-09-16 16:53:40 -0400
commitf8eb0dc821e2956d531baf31efafda0539de6112 (patch)
tree4f3c7c63b1951182591c490f310b1dfda0ace172
parente08eb4385412b697367a66d3ca5eae25e3a739e8 (diff)
downloadorg.eclipse.osee-f8eb0dc821e2956d531baf31efafda0539de6112.tar.gz
org.eclipse.osee-f8eb0dc821e2956d531baf31efafda0539de6112.tar.xz
org.eclipse.osee-f8eb0dc821e2956d531baf31efafda0539de6112.zip
bug: ActionArtifact - don't exception if priority not set - fix SyncOseeAndCpcr
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
index eb2165bc97..fc600ec2a5 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
@@ -804,8 +804,6 @@ public class ActionArtifact extends ATSArtifact implements IWorldViewArtifact {
PriorityType priType = null;
if (Strings.isValid(priorityStr)) {
priType = PriorityType.getPriority(priorityStr);
- } else {
- throw new OseeArgumentException("Invalid priority => " + priorityStr);
}
setArtifactIdentifyData(toTeam, fromAction.getName(),
fromAction.getSoleAttributeValue(AtsAttributeTypes.Description, ""),
@@ -825,7 +823,7 @@ public class ActionArtifact extends ATSArtifact implements IWorldViewArtifact {
}
art.setSoleAttributeValue(AtsAttributeTypes.ChangeType, changeType.name());
// art.setAttributeValues(ATSAttributes.USER_COMMUNITY_ATTRIBUTE.getStoreName(), userComms);
- if (priority != null) {
+ if (priority != null && priority != PriorityType.None) {
art.setSoleAttributeValue(AtsAttributeTypes.PriorityType, priority.getShortName());
}
if (needByDate != null) {

Back to the top