Skip to content

Commit f5d3217

Browse files
committed
MC-15574: Fix associated product grid
1 parent c390a91 commit f5d3217

File tree

1 file changed

+13
-0
lines changed
  • app/code/Magento/ConfigurableProduct/Block/Adminhtml/Product/Edit/Tab/Variations/Config

1 file changed

+13
-0
lines changed

app/code/Magento/ConfigurableProduct/Block/Adminhtml/Product/Edit/Tab/Variations/Config/Matrix.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ public function __construct(
9898
}
9999

100100
/**
101+
* Return currency symbol.
102+
*
101103
* @return string
102104
*/
103105
public function getCurrencySymbol()
@@ -274,6 +276,8 @@ public function getImageUploadUrl()
274276
}
275277

276278
/**
279+
* Return product qty.
280+
*
277281
* @param Product $product
278282
* @return float
279283
*/
@@ -283,6 +287,8 @@ public function getProductStockQty(Product $product)
283287
}
284288

285289
/**
290+
* Return variation wizard.
291+
*
286292
* @param array $initData
287293
* @return string
288294
*/
@@ -298,6 +304,8 @@ public function getVariationWizard($initData)
298304
}
299305

300306
/**
307+
* Return product configuration matrix.
308+
*
301309
* @return array|null
302310
*/
303311
public function getProductMatrix()
@@ -309,17 +317,22 @@ public function getProductMatrix()
309317
}
310318

311319
/**
320+
* Return product attributes.
321+
*
312322
* @return array|null
313323
*/
314324
public function getProductAttributes()
315325
{
316326
if ($this->productAttributes === null) {
317327
$this->prepareVariations();
318328
}
329+
319330
return $this->productAttributes;
320331
}
321332

322333
/**
334+
* Prepare product variations.
335+
*
323336
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
324337
* @return void
325338
* TODO: move to class

0 commit comments

Comments
 (0)