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.


Dave Reid’s picture

Version: 7.x-1.0-beta5 » 7.x-1.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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