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

Raed El-Hames rfh at vialtus.com
Tue Feb 17 09:46:53 EST 2009


Or maybe :

my $billable = $self->TransactionObj->CreatorObj->FirstCustomFieldValue('Billable');

note the (Obj) at the end of Creator

Regards;
Roy


Emmanuel Lacour wrote:
> 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 ;)
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>   






More information about the rt-users mailing list