[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 09:30:53 EST 2008


On Mon, Jan 21, 2008 at 02:56:27PM +0100, Ham MI-ID, Torsten Brumm wrote:
> Hi Emmanuel,
> The error message is getting better ;-)
> 
> Jan 21 13:53:30 bruchtal-www3 RT: Template parsing error: Can't locate object method "First" via package "Shipment" (perhaps you forgot to load "Shipment"?) at template line 1.  Stack:   [template:1]
> 
> This is the correct Template, without any replacements:
> 
> To: {$Ticket->FirstCustomFieldValue('Occured in Module')->First->Description;}

You didn't write exactly what I said ;) "$Ticket->CustomFieldValues", not "$Ticket->FirstCustomFieldValue".

See the function FirstCustomFieldValue in lib/RT/Record.pm to understand it.


-- 
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