BasketSnapshot.php: cast objects to an array...
...when uploading a basket
This commit is contained in:
parent
92c05f49a3
commit
6d46a62085
|
@ -184,7 +184,7 @@ class BasketSnapshot extends DbObject
|
|||
$snapshot = static::create([
|
||||
'basket_uuid' => $basket->get('uuid')
|
||||
]);
|
||||
$snapshot->objects = Json::decode($string);
|
||||
$snapshot->objects = (array) Json::decode($string);
|
||||
|
||||
return $snapshot;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue