From f2f715de390e5cbab13c0f884b7970faa0342dd1 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 24 Mar 2020 10:44:44 +0100 Subject: [PATCH] wip #3510 @0:10 --- app/Models/Product.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/Product.php b/app/Models/Product.php index 3f31f3b..e78bbcb 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -324,6 +324,9 @@ class Product extends CubistMagicPageModel } else if ($specEntity->type === 'mlist') { $options = Json::decodeRecursive($specEntity->options, Json::TYPE_ARRAY); $thisSpecs = []; + if (!is_array($val)) { + $val = [$val]; + } foreach ($val as $v) { $r = $this->_optionValue($options, $v); if ($r === null) { -- 2.39.5