ACL - current ?

Andrii
Kilo Guru

I'm writing ACLs for TimeCards and here is the issue I faced: within ACL Script I want to log:

gs.log('**** TimeCard.Sunday.acl.week_starts_on = '+current.week_starts_on);

However value of current.week_starts_on is always different and unpredictable. Sometimes I can get date that is one or two weeks ahead.

Only last hour it got to normal work returning the real value of week_starts_on.

**** TimeCard.Sunday.acl.week_starts_on = 2016-10-16

find_real_file.png

Any ideas of possible root-cause?

P.S. Additionaly I was calling Script Include from ACL Script field and passing current object to Script Include.

Script Include also logged unpredictable values.

6 REPLIES 6

Try getDisplayValue() and see if that helps



gs.log('**** TimeCard.Sunday.acl.week_starts_on = '+current.week_starts_on.getDisplayValue());  


That didn't work =(



find_real_file.png