[rt-users] Set CustomField from scrip action SOLVED

Tim Cutts tjrc at sanger.ac.uk
Thu Apr 23 13:26:58 EDT 2009


On 9 Apr 2009, at 7:04 pm, Nick Kartsioukas wrote:

> On Wed, 08 Apr 2009 17:36:08 -0700, "Nick Kartsioukas"
> <change+lists.rt at nightwind.net> said:
>> my $cf = RT::CustomField->new( $RT::SystemUser );
>> $cf->LoadByName( Name => 'createdbyemail' );
>> $self->TicketObj->AddCustomFieldValue( Field => $cf, Value =>  
>> 'yes' );
>> return 1;
>
> Got it.  Should be double-quotes instead of single-quotes for the  
> value
> to set, so:
> $self->TicketObj->AddCustomFieldValue( Field => $cf, Value => "yes" );

Single vs double quotes in that context shouldn't make any difference...

Tim


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 



More information about the rt-users mailing list