@@ -76,8 +76,14 @@ |
||
76 | 76 | |
77 | 77 | $locale = null; |
78 | 78 | $scope = null; |
79 | - if (in_array($attribute, $localizableAttributes)) $locale = $dataLocale; // check if attribute localizable |
|
80 | - if (in_array($attribute, $scopableAttributes)) $scope = $scopeCode; // check if attribute scopable |
|
79 | + if (in_array($attribute, $localizableAttributes)) { |
|
80 | + $locale = $dataLocale; |
|
81 | + } |
|
82 | + // check if attribute localizable |
|
83 | + if (in_array($attribute, $scopableAttributes)) { |
|
84 | + $scope = $scopeCode; |
|
85 | + } |
|
86 | + // check if attribute scopable |
|
81 | 87 | |
82 | 88 | $attributeValue = $this->prepareAttributeValue($attribute, $attributeValue); |
83 | 89 | $product = $this->productRepository->getFullProduct($productId); |