Fixed a bug in convertXToProductId when attribute result was empty it was throwing exception

This commit is contained in:
Prashant Singh 2019-07-19 10:20:39 +05:30
parent 48d068d760
commit f68428ca4d
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}