From: Aron Roberts Date: Tue, 30 Jul 2013 00:46:59 +0000 (-0700) Subject: CSPACE-6114: Fix bug that prevented Boolean fields from being emitted in list results. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=d4834b304f76e88bcf2e2b44ea75bd06ecc4da0e;p=tmp%2Fjakarta-migration.git CSPACE-6114: Fix bug that prevented Boolean fields from being emitted in list results. --- diff --git a/services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java b/services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java index b310d1d33..aba922d85 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java +++ b/services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java @@ -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.");