Problem/Motivation

In some contexts when using node_singles tokens, the following warning is triggered:

Warning: Undefined array key "langcode" in node_singles_tokens() (line 64 of modules/contrib/node_singles/node_singles.tokens.inc).
node_singles_tokens('node_singles', Array, Array, Array, Object) (Line: 76)

Proposed resolution

$options['langcode'] is not required, so let's add a fallback.

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

DieterHolvoet created an issue. See original summary.

  • DieterHolvoet committed 0cb3edf4 on 3.x
    Issue #3371532 by DieterHolvoet: Warning: Undefined array key 'langcode...
dieterholvoet’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.