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.
$node->taxonomy comes in two formats:
[obj mode]
An array with keys of the term id and values of term objects
or
[preview mode]
An array with keys of the vocabulary id and values of:
term id for single select
array of term id for multi-select
array of free terms if key is 'tags'
The code that was trying to handle the preview mode was not working right (casting term id into an object).
This patch will check to see if the value in the term is an object, if it is it will do what it did before, if it isn't then then it handles preview mode correctly.
Comment | File | Size | Author |
---|---|---|---|
token.node_term.diff | 2.6 KB | hawk259 | |
Comments
Comment #1
Dave ReidDuplicate of #188412: term token isn't provided corerctly when the node is not yet saved.