From 6d46a6208592eff30fb3ef6833dec64ff36fffd1 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 22 Jan 2019 16:59:20 +0100 Subject: [PATCH] BasketSnapshot.php: cast objects to an array... ...when uploading a basket --- library/Director/DirectorObject/Automation/BasketSnapshot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/DirectorObject/Automation/BasketSnapshot.php b/library/Director/DirectorObject/Automation/BasketSnapshot.php index 050ddd2f..2c50d664 100644 --- a/library/Director/DirectorObject/Automation/BasketSnapshot.php +++ b/library/Director/DirectorObject/Automation/BasketSnapshot.php @@ -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; }