I've made a photo gallery using Views, where each photo is a node. I want my images' captions to come from one of the nodes' optional fields. But if the field is empty on a node, I get the token in plain text as the caption, instead of simply getting no caption.

I've attached a screenshot as an example. The caption works perfectly whenever the field is there, but does this whenever it's absent.

CommentFileSizeAuthor
Caption token bug407.8 KBLanny Heidbreder
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frjo’s picture

Status: Active » Closed (duplicate)

I believe this was fixed in #1412614: Clear tokens that do not have a replacement value and committed to 7-dev.