Skip to content
This repository was archived by the owner on Sep 14, 2020. It is now read-only.
This repository was archived by the owner on Sep 14, 2020. It is now read-only.

[1.0.0] template cannot be diferent than exactly "widget/grid.phtml" #278

@EliasZ

Description

@EliasZ

In BL_CustomGrid_Model_Observer::beforeBlockToHtml this line helps determining whether the custom grid logic should run:

&& ($gridBlock->getTemplate() == 'widget/grid.phtml')

In a custom grid, we added some minor changes in the template file and therefore the template name is different (vendor/widget/grid.phtml) than expected (widget/grid.phtml).

Quickest fix is a stripos check, but it is also possible to make this configurable with a list of templates to include/exclude.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions