Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix menu item voter conflicting with other voters #257

Merged
merged 2 commits into from
Dec 21, 2017

Conversation

emodric
Copy link
Contributor

@emodric emodric commented Dec 21, 2017

Voters should return null if they can't decide if menu item is active or not, rather than false, because returning false prevents other voters from functioning properly.

This messes up the voter implemented in Tags Bundle for example.

Question Answer
Tickets https://jira.ez.no/browse/EZP-28626
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

Voters should return `null` if they can't decide if menu item is active or not, rather than `false`, because returning `false` prevents other voters from functioning properly.

This messes up the voter implemented in Tags Bundle for example.
@lserwatka lserwatka merged commit bb92bd9 into ezsystems:master Dec 21, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants