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.
If you create an optional nodereference field for a node, and then attempt to retrieve the tokens for that node, all of the token values for the nodereference will be empty except for the path and url tokens, which will return "node" and "http://example.com/node" respectively. Those tokens should reflect the state of the referenced node. The attached patch fixes the token code to return an empty string for empty referenced nodes.
Comment | File | Size | Author |
---|---|---|---|
cck_nodereference_token.patch | 944 bytes | duellj |
Comments
Comment #1
yched CreditAttribution: yched commentedSounds reasonable. Committed (+ added similar check for userref tokens). Thanks !