Problem/Motivation

When viewing a page with embedded displays of nodes that have pagination enabled and no body field in the requested display, a notice similar to the following is thrown:

Notice: Undefined index: body in pagination_node_view() (line 261 of ..../sites/all/modules/contrib/pagination/pagination.module).

Note that this is not about the body field not being present on the content type, but that it is not present in the view mode being displayed.

Proposed resolution

In pagination_node_view, check if the body field is set.

Remaining tasks

Community Review

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

raystuart’s picture

Issue #2117719 by raystuart: Fix undefined body in pagination_node_view.

FluxSauce’s picture

Issue summary: View changes
Status: Active » Reviewed & tested by the community

Works for me.

FluxSauce’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
3.11 KB

Found one more notice, fixed in attached, please review.