<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.16576"></HEAD>
<BODY>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>I have this template
for when a ticket is stolen:</FONT></SPAN></DIV>
<DIV><SPAN class=047041520-30052013></SPAN><SPAN class=047041520-30052013><FONT
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>To: { my $old_owner
= RT::User->new( $self->CurrentUser );<BR>
$old_owner->Load( $Transaction->OldValue
);<BR> $old_owner->EmailAddress();
}<BR>Subject: Ticket #{ $Ticket->Id() } taken by {
$Ticket->OwnerObj->Name() }</FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>A ticket you
owned:</FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>{
$Ticket->Subject() }</FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>has been taken by {
$Ticket->OwnerObj->Name()}.</FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>{ $RT::WebURL
}Ticket/Display.html?id={ $Ticket->Id }</FONT></SPAN></DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>I've been using it
since around RT 4.0.6 & all has been well. I'm deploying a new 4.0.13 system
& copied the Scrip and Template intot he new system. When someone does a
Steal, it works inside of RT but I get the following error in the
logs:</FONT></SPAN></DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>[Thu May 30 20:20:45
2013] [info]: <<A
href="mailto:rt-4.0.13-1532-1369945245-1205.4-12-0@DOMAIN-REDACTED.com">rt-4.0.13-1532-1369945245-1205.4-12-0@DOMAIN-REDACTED.com</A>>
#4/148 - Scrip 12 On Take
(/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:285)<BR>[Thu May 30 20:20:45 2013]
[info]: <<A
href="mailto:rt-4.0.13-1532-1369945245-1205.4-12-0@DOMAIN-REDACTED.com">rt-4.0.13-1532-1369945245-1205.4-12-0@DOMAIN-REDACTED.com</A>>
sent Bcc: <A
href="mailto:adam@DOMAIN-REDACTED.com">adam@DOMAIN-REDACTED.com</A>
(/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:316)<BR>[Thu May 30 20:25:52 2013]
[info]: Successful login for <A
href="mailto:adam@DOMAIN-REDACTED.com">adam@DOMAIN-REDACTED.com</A>
from IP-REDACTED (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:758)<BR>[Thu May
30 20:26:20 2013] [error]: Template parsing error: Can't call method
"CurrentUser" on an undefined value at template line 1.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>Stack:<BR>
[template:1]<BR> [/opt/rt4/sbin/../lib/RT/Template.pm:479]<BR>
[/opt/rt4/sbin/../lib/RT/Template.pm:435]<BR>
[/opt/rt4/sbin/../lib/RT/Template.pm:363]<BR>
[/opt/rt4/sbin/../lib/RT/Template.pm:343]<BR>
[/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:138]<BR>
[/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]<BR>
[/opt/rt4/sbin/../lib/RT/ScripAction.pm:226]<BR>
[/opt/rt4/sbin/../lib/RT/Scrip.pm:448]<BR>
[/opt/rt4/sbin/../lib/RT/Scrips.pm:234]<BR>
[/opt/rt4/sbin/../lib/RT/Transaction.pm:179]<BR>
[/opt/rt4/sbin/../lib/RT/Record.pm:1504]<BR>
[/opt/rt4/sbin/../lib/RT/Ticket.pm:3051]<BR>
[/opt/rt4/sbin/../lib/RT/Ticket.pm:3115]<BR>
[/opt/rt4/share/html/Ticket/Display.html:153]<BR>
[/opt/rt4/share/html/Ticket/autohandler:66]<BR>
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:635]<BR>
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:335]<BR>
[/opt/rt4/share/html/autohandler:53]
(/opt/rt4/sbin/../lib/RT/Template.pm:474)<BR></FONT></SPAN></DIV>
<DIV><SPAN class=047041520-30052013><FONT size=2 face=Arial>What
happened?</FONT></SPAN></DIV></BODY></HTML>