We ran into an issue where a chained token, in our case [node:og-group-ref:0:url:relative], was not returning a value.

I was able to trace its cause to the array of objects not being indexed in the same way as the token delta. So, for instance, the array of objects would be

array(8542 => )

instead of

array(0 => )

when using a delta of zero.

Patch attached to fix this issue.

Comments

RyanPrice created an issue. See original summary.

RyanPrice’s picture

StatusFileSize
new994 bytes

Patch attached

RyanPrice’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: entity-tokens-index-issue-2596617.patch, failed testing.

RyanPrice’s picture

StatusFileSize
new861 bytes

Attempting a new patch that will hopefully pass testing.

RyanPrice’s picture

Status: Needs work » Needs review
damienmckenna’s picture

Version: 7.x-1.6 » 7.x-1.x-dev
Status: Needs review » Needs work

Hey Ryan :) One minor thing - the comment needs to wrap at 80 chars and have a period at the end.