Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The Rate results tab is intended to appear for node entities, on the node canonical tabs when a node bundle is enabled for voting.
However, if there is more than 1 node bundle enabled for voting, or if there is also a non-node entity enabled for voting, the Rate results tab disappears. Currently it unsets the tab if there are any bundles enabled that is not the current node bundle.
Proposed resolution
Tweak the logic in the rate_menu_local_tasks_alter()
function, to check if the entity type is a node, and if the current node bundle is voting enabled. Otherwise, unset the tab.
Remaining tasks
Patch needs review.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | rate-results-tab-disappears-fix-2836201-2.patch | 944 bytes | mroycroft |
Comments
Comment #2
mroycroft CreditAttribution: mroycroft commentedHere is the proposed fix.
Comment #3
mroycroft CreditAttribution: mroycroft commentedComment #4
dangelo5 CreditAttribution: dangelo5 commentedVerified this fix.
Results tab displays for content types that are configured for voting.
Comment #5
dangelo5 CreditAttribution: dangelo5 commentedComment #6
brenk28 CreditAttribution: brenk28 at Phase2 for Workday, Inc. commentedComment #8
brenk28 CreditAttribution: brenk28 at Phase2 for Workday, Inc. commented