diff options
author | ddunne | 2011-07-29 20:03:26 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2011-07-29 20:03:26 +0000 |
commit | d4a926cd290a200a9c046bfc72382aef859f03b9 (patch) | |
tree | 098afd42f2f87d886bbd52e429b6b7798288d410 /plugins | |
parent | 2a4ba85c03158ae78857b19ea2ce060e0808bd05 (diff) | |
download | org.eclipse.osee-d4a926cd290a200a9c046bfc72382aef859f03b9.tar.gz org.eclipse.osee-d4a926cd290a200a9c046bfc72382aef859f03b9.tar.xz org.eclipse.osee-d4a926cd290a200a9c046bfc72382aef859f03b9.zip |
bug: Fix AtsOperationalImpactValidator and AtsOperationalImpactWithWorkaroundValidator boolean check
Diffstat (limited to 'plugins')
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/validator/AtsOperationalImpactValidator.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/validator/AtsOperationalImpactValidator.java index de1b7993e63..ae0eb94a70f 100644 --- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/validator/AtsOperationalImpactValidator.java +++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/validator/AtsOperationalImpactValidator.java @@ -30,8 +30,8 @@ public class AtsOperationalImpactValidator extends AtsXWidgetValidator { if (WIDGET_NAME.equals(widgetDef.getXWidgetName())) { if (provider instanceof ArtifactValueProvider && ((ArtifactValueProvider) provider).getArtifact() instanceof TeamWorkFlowArtifact) { TeamWorkFlowArtifact teamArt = (TeamWorkFlowArtifact) ((ArtifactValueProvider) provider).getArtifact(); - boolean checked = teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpact, false); - if (checked) { + String impact = teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpact, "No"); + if (impact.equals("Yes")) { String desc = teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpactDescription, ""); if (!Strings.isValid(desc)) { return new WidgetResult(WidgetStatus.Invalid_Incompleted, widgetDef, "Must enter [%s]", diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/validator/AtsOperationalImpactWithWorkaroundValidator.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/validator/AtsOperationalImpactWithWorkaroundValidator.java index 4e16a1f348e..4eb595510ef 100644 --- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/validator/AtsOperationalImpactWithWorkaroundValidator.java +++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/validator/AtsOperationalImpactWithWorkaroundValidator.java @@ -27,17 +27,17 @@ public class AtsOperationalImpactWithWorkaroundValidator implements IAtsXWidgetV if (WIDGET_NAME.equals(widgetDef.getXWidgetName())) { if (provider instanceof TeamWorkFlowArtifact) { TeamWorkFlowArtifact teamArt = (TeamWorkFlowArtifact) provider; - boolean checked = teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpact, false); - if (checked) { + String impact = teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpact, "No"); + if (impact.equals("Yes")) { String desc = teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpactDescription, ""); if (!Strings.isValid(desc)) { return new WidgetResult(WidgetStatus.Invalid_Incompleted, widgetDef, "Must enter [%s]", AtsAttributeTypes.OperationalImpactDescription.getName()); } } - boolean workaroundChecked = - teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpactWorkaround, false); - if (workaroundChecked) { + String workaroundChecked = + teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpactWorkaround, "No"); + if (workaroundChecked.equals("Yes")) { String desc = teamArt.getSoleAttributeValue(AtsAttributeTypes.OperationalImpactWorkaroundDescription, ""); if (!Strings.isValid(desc)) { |