[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.
Stack:
[template:1]
[/usr/local/rt3/lib/RT/Template_Overlay.pm:419]
[/usr/local/rt3/lib/RT/Template_Overlay.pm:343]
[/usr/local/rt3/lib/RT/Action/SendEmail.pm:112]
[/usr/local/rt3/lib/RT/Action/Notify.pm:65]
[/usr/local/rt3/lib/RT/ScripAction_Overlay.pm:233]
[/usr/local/rt3/lib/RT/Scrip_Overlay.pm:478]
[/usr/local/rt3/lib/RT/Scrips_Overlay.pm:236]
[/usr/local/rt3/lib/RT/Transaction_Overlay.pm:162]
[/usr/local/rt3/lib/RT/Record.pm:1431]
[/usr/local/rt3/lib/RT/Ticket_Overlay.pm:3043]
[/usr/local/rt3/lib/RT/Ticket_Overlay.pm:3108]
[/usr/local/rt3/share/html/Ticket/Display.html:122]
[/usr/local/rt3/share/html/autohandler:215]
(/usr/local/rt3/lib/RT/Template_Overlay.pm:415)
[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.
Thanks,
Jeff
--
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