cancel
Showing results for 
Search instead for 
Did you mean: 

'person' object not being injected in JS webscripts

damiar
Champ in-the-making
Champ in-the-making
Hey people, I have a JavaScript webscript that executes all the instructions without problems. All but one, because the last instruction tries to use the variable 'person' (which is injected automatically by Alfresco in every WS) and the webscript throws an error saying "'person' is not defined". I tried using the debugger and the 'person' object is not present in the WS.

Any idea of what is happening?

I found a bug https://issues.alfresco.com/jira/browse/ETHREEOH-221 but this is not the case. The user has access to Company Home.
1 REPLY 1

damiar
Champ in-the-making
Champ in-the-making
Fixed, in the config of the webscript the transaction tag was in 'none'. I changed to 'required'.