Encounter a weird error: using Token 7.x-1.6

Settings:
Field name:"field_id"
Field type: text, 8 characters.
Field in Database: Mysql varchar(8)

Using token under module "Automatic Entity Labels" fetch the token [node:fied_id] with PHP
1. when the value has no leading 0, such as 1234567, 54321 the fetched token ok.
2. when the value has leading 0, the fetched value change: in real case: the filed stored value is: 03444428, but the token returen : "117206"

I have to use the code example from computed field's $entity->field_id['und'][0]['value']) will get the correct stored value.

It maybe the token value get converted when there is a leading but can't figure out how 0344428 turn to 117206.

Comments

totolearn created an issue. See original summary.

totolearn’s picture

Title: Ttoken return weird number from Text ID Field with leading 0 » Token return weird number from Text ID Field with leading 0
Issue summary: View changes