gerardharvey / proto-athena

0 stars 1 forks source link

Wrong string split when showing group name (in customise-site) #18

Closed maoo closed 10 years ago

maoo commented 10 years ago

Issue is caused by wrong code on line https://github.com/gerardharvey/proto-athena/blob/150b17d7ce60e7b21c9c2ca6fdcf53072e1cf1de/proto-athena-repo/src/main/amp/config/alfresco/extension/templates/webscripts/co/uk/rrd/alfresco/site/group/visiblesitegroups.get.json.ftl#L6

"displayName":"${group?split('_')[1]}"

should be replaced with

"displayName":"${group?substring(group?index_of('_')}"