peterlu
12 years agoChampion
endpoint bug - user.id
if my user id is 2379, in the component, if i use ${user.id}, it prints 2379. But in the endpoint, if i use ${user.id}, it prints 2,379. I think it is a bug.
- 12 years ago
Hi peterlu
I think it's simply a case of setting up the desired format in your endpoint. As the endpoint is standalone (i.e. not a component in the context of a community that already has a locale etc ...) it's up to you to determine the correct format in the code. Have a look at this freemarker guide , specifically the number_format setting.
Hope this helps,