When I have commented my php code like so on my OnLoad:
/*
if ([glob_role]==‘AD’)
{
sc_field_readonly({RUG_EMPLID_HRA}, ‘on’);
{RUG_EMPLID_HRA}=[glob_user];
}
*/
then strangely enough glob_user will show up on the global variables of that form. That looks very much like a bug to me.
[glob_user] is not in an uncommented line. Hence this is a bug (annoying).