Addition to Fix template engine rending attributes with multiselect configured
This commit is contained in:
parent
a1c714bdb8
commit
7b4d11f1f5
@ -1011,7 +1011,7 @@ class PageRender extends Visitor {
|
||||
$vals = $attribute->getValues();
|
||||
$j = 0;
|
||||
|
||||
if (! $vals && ! is_array($vals = $attribute->getDefault()))
|
||||
if (! $vals && ! is_null($attribute->getDefault()) && ! is_array($vals = $attribute->getDefault()))
|
||||
$vals = array($attribute->getDefault());
|
||||
|
||||
if (($attribute->getSize() > 0) && ($attribute->getSize() < $attribute->getOptionCount())) {
|
||||
|
Loading…
Reference in New Issue
Block a user