[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-users
Subject:    Re: [rt-users] Error with custom scrip action
From:       Andy Harrison <aharrison () gmail ! com>
Date:       2005-02-28 11:43:18
Message-ID: a22ff29405022803432ce9cca3 () mail ! gmail ! com
[Download RAW message or body]

> 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
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Administrator and Developer training is coming to your town soon! (Boston, San \
Francisco, Austin, Sydney) Contact training@bestpractical.com for details.

Be sure to check out the RT Wiki at http://wiki.bestpractical.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic