[rt-users] Simple Question: CustomField of Type SelectOneValue / How to get the Description from a Scrip/Template?

Emmanuel Lacour elacour at easter-eggs.com
Mon Jan 21 08:46:36 EST 2008


On Mon, Jan 21, 2008 at 02:38:01PM +0100, Ham MI-ID, Torsten Brumm wrote:
> Hi RT Users,
> Just a simple questions (hopefully). Inside a scrip i can get the CF
> Value with: $Ticket->FirstCustomFieldValue('CFNAME'). If i need to the
> the corresponding Description to this value, can i get this with:
> $Ticket->FirstCustomFieldValue('CFNAME')->Description ?!?
> 

Should be:

$Ticket->CustomFieldValues('CFNAME')->First->Description

I think ...

-- 
Emmanuel Lacour ------------------------------------ Easter-eggs
44-46 rue de l'Ouest  -  75014 Paris   -   France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37    -     Fax: +33 (0) 1 41 35 00 76
mailto:elacour at easter-eggs.com   -    http://www.easter-eggs.com



More information about the rt-users mailing list