Fixed a bug in convertXToProductId when attribute result was empty it was throwing exception
This commit is contained in:
parent
48d068d760
commit
f68428ca4d
|
|
@ -76,10 +76,13 @@ class ConvertXToProductId
|
|||
return false;
|
||||
}
|
||||
|
||||
$categoryResult = collect();
|
||||
|
||||
if (isset($categoryValues) && count($categoryValues)) {
|
||||
$categoryResult = $this->convertFromCategories($categoryValues);
|
||||
}
|
||||
|
||||
$attributeResult = collect();
|
||||
if (isset($attributeValues) && count($attributeValues)) {
|
||||
$attributeResult = $this->convertFromAttributes($attributeValues);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue