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

Switch the Order element to override Element::tableAttributeHtml(). #832

Merged
merged 2 commits into from
Apr 29, 2019

Conversation

joshangell
Copy link
Contributor

This PR changes the Order element to override Element::tableAttributeHtml() instead of Element::getTableAttributeHtml() and fixes an issue where plugins and modules couldn’t add custom index table attributes via the Element::EVENT_SET_TABLE_ATTRIBUTE_HTML event.

That event gets fired in Element::getTableAttributeHtml() and the method in the Order element class wasn’t then falling back to using that in the default part of the switch statement (line 1820).

This change is in line with the method used in the Entry element class.

…instead of `Element::getTableAttributeHtml()`.

This fixes an issue where plugins and modules couldn’t add custom index table attributes via the `Element::EVENT_SET_TABLE_ATTRIBUTE_HTML` event.

That event gets fired in `Element::getTableAttributeHtml()` and the method in the Order element class wasn’t then falling back to using that in the default part of the switch statement (line 1820).

This change is in line with the method used in the Entry element class.
@andris-sevcenko andris-sevcenko merged commit c347cc8 into craftcms:develop Apr 29, 2019
@andris-sevcenko
Copy link
Contributor

Thanks!

@joshangell
Copy link
Contributor Author

Thank you kind sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants