Import: keep boolean values

This commit is contained in:
Thomas Gelf 2016-05-17 15:46:20 +02:00
parent 0b6f004e4f
commit deea18f8df
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class Import
*/ */
protected function prepareImportedProperty($key, $rawValue) protected function prepareImportedProperty($key, $rawValue)
{ {
if (is_array($rawValue)) { if (is_array($rawValue) || is_bool($rawValue)) {
$value = json_encode($rawValue); $value = json_encode($rawValue);
$format = 'json'; $format = 'json';
} elseif ($rawValue instanceof stdClass) { } elseif ($rawValue instanceof stdClass) {