Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Magento\Backend\Block\Widget\Grid\Column\Renderer #860

Merged
merged 1 commit into from
Dec 25, 2014

Conversation

SchumacherFM
Copy link
Member

Currency and Price Renderer: use _getValue() to be able to also
retrieve a calculated value instead of a fixed one via getData().


In Magento\Backend\Block\Widget\Grid\Column\Renderer\Currency the render method is not using
\Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer::_getValue(Object $row)

    public function render(\Magento\Framework\Object $row)
    {
        if ($data = (string)$row->getData($this->getColumn()->getIndex())) {

What is the particular reason for relying on the retrieval method above? ;-)

Would be great if you can implement the _getValue() method as there are use cases for retrieving a computed value.

In Magento\Backend\Block\Widget\Grid\Column\Renderer::Number you have the correct useful implementation of _getValue() :-)

Thank you for merging!

Currency and Price Renderer: use _getValue() to be able to also
retrieve a calculated value instead of a fixed one via getData().
@maksek maksek added PROD Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development and removed PROD labels Dec 23, 2014
@maksek maksek self-assigned this Dec 25, 2014
@maksek
Copy link
Contributor

maksek commented Dec 25, 2014

Code Review passed
Builds green
Resolution: OK to merge

@maksek maksek removed the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Dec 25, 2014
maksek pushed a commit that referenced this pull request Dec 25, 2014
Feature: Magento\Backend\Block\Widget\Grid\Column\Renderer (MAGETWO-32153)
@maksek maksek merged commit cc577b7 into magento:develop Dec 25, 2014
@SchumacherFM SchumacherFM deleted the AdminGridColumnRendererFix branch December 27, 2014 04:31
mmansoor-magento pushed a commit that referenced this pull request Feb 22, 2017
Fixed issues:
- MAGETWO-62616: Products are missed and total count is wrong on category page
- MAGETWO-63403: Auto Generated coupon codes not applying
- MAGETWO-63561: category_ids attribute scope dropdown
- MAGETWO-61830; Related Products Rules can't be defined based on product attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants