Closed (duplicate)
Project:
Token
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 14:15 UTC
Updated:
9 Jun 2010 at 03:47 UTC
$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.