Import: pass through integer and float types

This commit is contained in:
Thomas Gelf 2016-05-18 21:52:22 +02:00
parent 102925ee84
commit dee5c422f2
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) || is_bool($rawValue)) { if (is_array($rawValue) || is_bool($rawValue) || is_int($rawValue) || is_float($rawValue)) {
$value = json_encode($rawValue); $value = json_encode($rawValue);
$format = 'json'; $format = 'json';
} elseif ($rawValue instanceof stdClass) { } elseif ($rawValue instanceof stdClass) {