Forum Discussion

Shivshankar's avatar
7 years ago

This widget could not be displayed.

I have a piece of code in custom widget. <#if !user.anonymous> <#assign userLanguage=restadmin("/users/id/${user.id?c}/profiles/name/language").value /> <#assign loginStatus="Yes"> <#ass...
  • TariqHussain's avatar
    7 years ago

    Shivshankar - One of the issues is on the line number 8. 

     


    wrote:
    <#assign userRole+= r.name+":"/>

     


    Freemarker doesn't support concatenating variable like JS. (userRole+=

     

    Please update 8th line as below. 

    <#assign userRole= userRole + r.name+":"/>