Problem/Motivation

If the field_content field of an entity doesn't have a value, the HTML and other handlers possibly pass NULL values to string functions (e.g. str_replace). This causes a notice to be produced.

Steps to reproduce

/

Proposed resolution

- Update ..\Handler\HandlerPluginBase, ..\Handler\HTML, ..\Handler\LongText to pass only string values when reading field_content.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pvbergen created an issue. See original summary.

pvbergen’s picture

Status: Active » Needs review
pvbergen’s picture

Status: Needs review » Fixed

  • pvbergen committed 6f66073a on 2.0.x
    Issue #3367841 by pvbergen: Notices on null values from...
pvbergen’s picture

Status: Fixed » Closed (fixed)