Import: pass through integer and float types
This commit is contained in:
parent
102925ee84
commit
dee5c422f2
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue