File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/ConfigurableProduct/Test/Fixture Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -197,15 +197,15 @@ static function (array $value) {
197197 );
198198 $ variationIndex = 0 ;
199199 foreach ($ variations as $ variation ) {
200- foreach ( $ variation as $ attributeId => $ valueInfo ) {
201- if ( isset ( $ links [ $ variationIndex ]) && $ links [ $ variationIndex ] !== 0 ) {
200+ if ( isset ( $ links [ $ variationIndex ]) && $ links [ $ variationIndex ] !== 0 ) {
201+ foreach ( $ variation as $ attributeId => $ valueInfo ) {
202202 $ attribute = $ this ->eavConfig ->getAttribute (\Magento \Catalog \Model \Product::ENTITY , $ attributeId );
203203 $ product = $ this ->productRepository ->getById ($ links [$ variationIndex ]);
204204 $ product ->setCustomAttribute ($ attribute ->getAttributeCode (), $ valueInfo ['value ' ]);
205205 $ this ->productRepository ->save ($ product );
206206 }
207- $ variationIndex ++;
208207 }
208+ $ variationIndex ++;
209209 }
210210 }
211211}
You can’t perform that action at this time.
0 commit comments