[rt-users] $self not exposed to templates, RT Essentials example failing

Jeff Bachtel jeff at cepheid.org
Fri Feb 17 13:53:32 EST 2006

I was trying to implement the OnSteal scrip example in RT Essentials.
The Template given creates a new temporary RT::User object (so that it
can rewind and get the old owner). The problem that I'm seeing is that
$self->CurrentUser is not being exposed to the Template engine when
the scrip is processed, ie:

[Fri Feb 17 18:24:01 2006] [error]: Template parsing error: Can't call
method "C
urrentUser" on an undefined value at template line 1.

[Fri Feb 17 18:24:01 2006] [error]: error:    unexpected end of header

Is there another object that can be used to expose $CurrentUser ? I
tried $session{'CurrentUser'}, but it's apparently an empty hash value
at that point.



Jeff Bachtel  (root at VPR,TAMU)     http://www.cepheid.org/~jeff
"The sciences, each straining in  [finger jeff at cepheid.org for PGP key]
its own direction, have hitherto harmed us little;" - HPL, TCoC

More information about the rt-users mailing list