]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-6114: Fix bug that prevented Boolean fields from being emitted in list results.
authorAron Roberts <aron@socrates.berkeley.edu>
Tue, 30 Jul 2013 00:46:59 +0000 (17:46 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Tue, 30 Jul 2013 00:46:59 +0000 (17:46 -0700)
services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java

index b310d1d3324f0b11279b101dd09d56e7956cee76..aba922d85fe0369876a3e7958af506873d8253f8 100644 (file)
@@ -920,6 +920,8 @@ public class DocumentUtils {
                     return GregorianCalendarDateTimeUtils.formatAsISO8601Date((GregorianCalendar)obj);
                 } else if (obj instanceof Double) {
                     return nuxeoDecimalValueToDecimalString(obj);
+                } else if (obj instanceof Boolean) {
+                    return String.valueOf(obj);
                 } else {
                    logger.warn("Could not convert value of property " + propertyPath
                             + " in document " + docModel.getPathAsString() + " to a String.");