Skip to content

Commit 8106260

Browse files
author
Oleksii Korshenko
authored
MAGETWO-67452: Fixed issue with grouped product name column renderer. It #4816
2 parents 0884b85 + d7937d5 commit 8106260

File tree

1 file changed

+9
-2
lines changed
  • app/code/Magento/GroupedProduct/Block/Adminhtml/Items/Column/Name

1 file changed

+9
-2
lines changed

app/code/Magento/GroupedProduct/Block/Adminhtml/Items/Column/Name/Grouped.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
class Grouped extends \Magento\Sales\Block\Adminhtml\Items\Column\Name
1111
{
12+
const COLUMN_NAME = 'name';
13+
1214
/**
1315
* Prepare item html
1416
*
@@ -24,8 +26,13 @@ protected function _toHtml()
2426
$item = $this->getItem();
2527
}
2628
if ($productType = $item->getRealProductType()) {
27-
$renderer = $this->getRenderedBlock()->getColumnHtml($this->getItem(), $productType);
28-
return $renderer;
29+
$renderer = $this->getRenderedBlock()->getColumnRenderer(self::COLUMN_NAME, $productType);
30+
if ($renderer) {
31+
$renderer->setItem($item);
32+
$renderer->setField(self::COLUMN_NAME);
33+
return $renderer->toHtml();
34+
}
35+
return ' ';
2936
}
3037
return parent::_toHtml();
3138
}

0 commit comments

Comments
 (0)