this was a closed issue; but apparently issues can no longer be re-opened:

I have an entityref field in a fc field and the latest releases of fc and entity.

My title pattern is this: [node:field-week]: [node:field-teams:0:field-team] vs [node:field-teams:1:field-team]

When i save a node i get this for title:
Week 3: [node:field-teams:0:field-team] vs [node:field-teams:1:field-team]

but, if i edit the node and re-submit; then it works correctly.

Comments

liquidcms created an issue.

liquidcms’s picture

couldnt get tokens to work so had to use php for ANT:

$ta = $node->field_teams['und'][0]['field_team']['und'][0]['target_id'];
$tb = $node->field_teams['und'][1]['field_team']['und'][0]['target_id'];
$na = node_load($ta);
$nb = node_load($tb);
$week = node_load($node->field_week['und'][0]['target_id']);

return  $week->title . ": " . $na->title . " vs " . $nb->title;
liquidcms’s picture

hmm.. but when i use editable fields to edit the values on this node.. the node title parts from the FC get lost.