[rt-users] Set a ticket custom field based on a User Custom field scrip action

Emmanuel Lacour elacour at easter-eggs.com
Tue Feb 17 09:22:59 EST 2009


On Tue, Feb 17, 2009 at 08:08:50AM -0600, Joel Schuweiler wrote:
> [Tue Feb 17 14:06:09 2009] [error]: Scrip 67 Prepare failed: Can't call method "FirstCustomFieldValue" without a package or object reference at (eval 932) line 1.
> 
> my $billable = $self->TransactionObj->Creator->FirstCustomFieldValue ( 'Billable' );
> 

try:

my $billable_obj = $self->TransactionObj->Creator->CustomFieldValues ( 'Billable' );
my $billable = $billable_obj->First;

(maybe ->First->Content).

I'm sorry I have no time to test what I'm writing ;)




More information about the rt-users mailing list