Followup to #1616962: Replace $node->title with $node->label() noted by Berdir: poll_page() directly queries the {node} table to built its list of polls, but should be using EFQ/entity_load instead, in order to obtain classed objects not that entities derive from Entity. When such nodes are passed to methods, they will be missing the expected EntityInterface methods.

Comments

fgm’s picture

Berdir also noticed similar issues in statistics, search and tracker.

alexpott’s picture

Project: Drupal core » Poll
Version: 8.x-dev » 8.x-1.x-dev
Component: poll.module » Code

Poll is no longer part of core

adammalone’s picture

Project: Poll » Drupal core
Version: 8.x-1.x-dev » 7.x-dev
Component: Code » poll.module
Issue summary: View changes

Moving this back to the Drupal project since Poll exists as its own entity in 8.x and does not query the node table.