From deea18f8df4d13a9c9a6e2d3009cecbedb574929 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 17 May 2016 15:46:20 +0200 Subject: [PATCH] Import: keep boolean values --- library/Director/Import/Import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Import/Import.php b/library/Director/Import/Import.php index 3dee29dc..e207188a 100644 --- a/library/Director/Import/Import.php +++ b/library/Director/Import/Import.php @@ -195,7 +195,7 @@ class Import */ protected function prepareImportedProperty($key, $rawValue) { - if (is_array($rawValue)) { + if (is_array($rawValue) || is_bool($rawValue)) { $value = json_encode($rawValue); $format = 'json'; } elseif ($rawValue instanceof stdClass) {