AW: [rt-users] Simple Question: CustomField of Type SelectOneValue /How to get the Description from a Scrip/Template?
Ham MI-ID, Torsten Brumm
torsten.brumm at Kuehne-Nagel.com
Mon Jan 21 09:40:08 EST 2008
Shame on me... :-(
Tryed it out with this (re read your Mail ;-) !)
To: {$Ticket->CustomFieldValues('Occured in Module')->First->Description;}
Subject: {$Ticket->Subject}
A new ticket has been created in queue HAM.WEBDEV.KNLOGIN.SUPPORT.
{$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
-------------
{$Transaction->Content()}
And i get this error now :-(
Jan 21 14:38:14 bruchtal-www3 RT: Template parsing error: RT::ObjectCustomFieldValue::Description Unimplemented in T. (template line 1) Stack: [/usr/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Record.pm:496] [template:1] [/opt/rt3/lib/RT/Template_Overlay.pm:392] [/opt/rt3/lib/RT/Template_Overlay.pm:313] [/opt/rt3/lib/RT/Action/SendEmail.pm:120] [/opt/rt3/lib/RT/ScripAction_Overlay.pm:234] [/opt/rt3/local/lib/RT/Scrip_Overlay.pm:493] [/opt/rt3/lib/RT/Scrips_Overlay.pm:239] [/opt/rt3/lib/RT/Transaction_Overlay.pm:173] [/opt/rt3/lib/RT/Record.pm:1461] [/opt/rt3/lib/RT/Ticket_Overlay.pm:746] [/opt/rt3/lib/RT/Interface/Web.pm:461] [/opt/rt3/local/html/Ticket/Display.html:71] [/opt/rt3/local/html/Ticket/Create.html:353] [/opt/rt3/share/html/autohandler:291] (/opt/rt3/lib/RT/Template_Overlay.pm:388)
Argh...sometimes....
Torsten
> Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.), Uwe Bielang (Stellv.), Bruno Mang, Alfred Manke, Thorsten Meincke, Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn (Stellv.), Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz: Contern/Luxemburg Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne
-----Ursprüngliche Nachricht-----
> Von: Emmanuel Lacour [mailto:elacour at easter-eggs.com]
> Gesendet: Montag, 21. Januar 2008 15:31
> An: Ham MI-ID, Torsten Brumm
> Cc: rt-users at lists.bestpractical.com
> Betreff: Re: [rt-users] Simple Question: CustomField of Type
> SelectOneValue /How to get the Description from a Scrip/Template?
>
> 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