Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2011 at 16:14 UTC
Updated:
14 Oct 2011 at 15:41 UTC
If a field is used across multiple entities, such as a node and a profile, then the field token is only generated for the last entity in the list. The problem is in _token_field_info() where $info[$key]['labels'] and $info[$key]['bundles'] are initialised within the loop that is iterating over entities. Therefore $info[$key]['bundles'] are only stored for the last entity. These initialisations should be moved outside the entity loop.
Comments
Comment #1
dave reidFixed with 7.x-1.x.
http://drupalcode.org/project/token.git/commit/48370d9