File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/Catalog/Model/ResourceModel/Product/Link/Product Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -369,20 +369,20 @@ private function joinProductsToLinks()
369
369
*/
370
370
protected function _afterLoad ()
371
371
{
372
- if ($ this ->getLinkModel ()) {
372
+ if ($ this ->getLinkModel ()) {
373
373
$ attributes = $ this ->getLinkAttributes ();
374
- foreach ($ this as $ item ) {
374
+ foreach ($ this as $ item ) {
375
375
foreach ($ attributes as $ attribute ) {
376
376
$ code = $ attribute ['code ' ];
377
377
$ value = $ item ->getData ($ code );
378
- if ($ value !== null ) {
379
- if ($ attribute ['type ' ] == 'decimal ' ) {
380
- $ item ->setData ($ code ,(float )$ value );
378
+ if ($ value !== null ) {
379
+ if ($ attribute ['type ' ] == 'decimal ' ) {
380
+ $ item ->setData ($ code , (float )$ value );
381
381
}
382
382
}
383
383
}
384
384
}
385
385
}
386
386
return parent ::_afterLoad ();
387
- }
387
+ }
388
388
}
You can’t perform that action at this time.
0 commit comments