Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2017-07-20 13:21:50 -0400
committerAngel Avila2017-07-20 21:14:55 -0400
commit131d9c4d3692e4da3a812af08c500a3515c1ce13 (patch)
tree221eb44a222827689789219097dceb0fe333187d
parent13353e9a2ef7c0907e1549e1c330681bdbbc304e (diff)
downloadorg.eclipse.osee-131d9c4d3692e4da3a812af08c500a3515c1ce13.tar.gz
org.eclipse.osee-131d9c4d3692e4da3a812af08c500a3515c1ce13.tar.xz
org.eclipse.osee-131d9c4d3692e4da3a812af08c500a3515c1ce13.zip
feature[ats_ATS422068]: Add ability for query results to return ids
-rw-r--r--plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/ConfigJsonWriter.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/ConfigJsonWriter.java b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/ConfigJsonWriter.java
index 2fee9b1d19..2ecb27ca80 100644
--- a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/ConfigJsonWriter.java
+++ b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/ConfigJsonWriter.java
@@ -243,7 +243,11 @@ public class ConfigJsonWriter implements MessageBodyWriter<IAtsConfigObject> {
writer.writeEndArray();
} else if (attributeValues.size() == 1) {
Object value = attributeValues.iterator().next();
- writer.writeObjectField(attrType.getName(), value);
+ if (fieldsAsIds) {
+ writer.writeObjectField(attrType.getIdString(), value);
+ } else {
+ writer.writeObjectField(attrType.getName(), value);
+ }
}
}

Back to the top