Skip to content

Commit

Permalink
Fixed issue with grouped product name column renderer. It
Browse files Browse the repository at this point in the history
was not rendering correctly when the real product type was
downloadable (see Issue #4815).
  • Loading branch information
wbyrnetx committed Jun 1, 2016
1 parent a5fa3af commit cb9b60b
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

class Grouped extends \Magento\Sales\Block\Adminhtml\Items\Column\Name
{
const COLUMN_NAME = 'name';

/**
* Prepare item html
*
Expand All @@ -24,8 +26,13 @@ protected function _toHtml()
$item = $this->getItem();
}
if ($productType = $item->getRealProductType()) {
$renderer = $this->getRenderedBlock()->getColumnHtml($this->getItem(), $productType);
return $renderer;
$renderer = $this->getRenderedBlock()->getColumnRenderer(self::COLUMN_NAME, $productType);
if ($renderer) {
$renderer->setItem($item);
$renderer->setField(self::COLUMN_NAME);
return $renderer->toHtml();
}
return ' ';
}
return parent::_toHtml();
}
Expand Down

0 comments on commit cb9b60b

Please sign in to comment.