[rt-users] Error with custom scrip action

Andy Harrison aharrison at gmail.com
Mon Feb 28 06:43:18 EST 2005


> Description:AddWatcherRegionEast 
> Custom Condition: user defined 
>   
> return undef unless ($self->TransactionObj->Type eq "Create");
> return undef unless ($self->TicketObj->FirstCustomFieldValue('Region') =~
> /RegionEast/i);
> return 1; 
>   
> Custom action prep: 
>   
> my ($status, $msg) = $self->TicketObj->AddWatcher(Type => 'Cc', Email =>
> "tola\@net2g.net" );
> return 1; 
>   
> custom action cleanup code: 
> return 1; 
>   
> The error i got is: 

> [Mon Feb 28 13:15:20 2005] [error]: Template parsing error: Can't call
> method "TicketObj" on an undefined value at template line 8. 

It's complaining about the template.  Are you making sure to use
Blank?  If so, did you modify that template?

-- 
Andy Harrison



More information about the rt-users mailing list