From: Vincent Vanwaelscappel Date: Tue, 24 Mar 2020 09:44:44 +0000 (+0100) Subject: wip #3510 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f2f715de390e5cbab13c0f884b7970faa0342dd1;p=pmi.git wip #3510 @0:10 --- 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) {