[rt-users] Template to list Cc's in correspondence
Mike Patterson
mikep at uclink.berkeley.edu
Thu Nov 6 19:32:39 EST 2003
I had a great little Template in RT2 that Phil Homewood was nice enough
to help me with.
http://lists.fsck.com/pipermail/rt-users/2003-February/012050.html
What I did was add these lines to my "correspondence" template
{ if ($cc=$Ticket->Cc->EmailsAsString()) { "Note CC via RT: " . $cc } }
{ if ($admincc=$Ticket->AdminCc->EmailsAsString()) { "AdminCc: " .
$admincc } }}
And on each email it would stamp who, if anybody, was Cc'd or AdminCc'd .
(I just noted the Cc for regular folks scrips/templates and noted
AdminCc in my scrips/templates for internal staff).
The problem is that it doesn't seem to work in RT 3.06
Judging from the output it appears the subroutine EmailsAsString() is
not defined in RT3.
Is there a similar subroutine I can use? Which .pm is it defined in?
Thanks again for the advice
--------
Error message below
-------
Program fragment delivered error ``RT::Group::EmailsAsString
Unimplemented in T. (template line 4)
Stack:
[/usr/local/lib/perl5/site_perl/5.8.1/DBIx/SearchBuilder/Record.pm:457]
[template:4]
[/usr/local/rt3/lib/RT/Template_Overlay.pm:394]
[/usr/local/rt3/lib/RT/Template_Overlay.pm:315]
[/usr/local/rt3/lib/RT/Action/SendEmail.pm:210]
[/usr/local/rt3/lib/RT/ScripAction_Overlay.pm:199]
[/usr/local/rt3/lib/RT/Scrip_Overlay.pm:394]
[/usr/local/rt3/lib/RT/Scrip_Overlay.pm:337]
[/usr/local/rt3/lib/RT/Transaction_Overlay.pm:169]
[/usr/local/rt3/lib/RT/Ticket_Overlay.pm:3799]
[/usr/local/rt3/lib/RT/Ticket_Overlay.pm:2318]
[/usr/local/rt3/lib/RT/Interface/Web.pm:452]
[/usr/local/rt3/share/html/Ticket/Display.html:100]
[/usr/local/rt3/share/html/Ticket/Update.html:196]
[/usr/local/rt3/share/html/autohandler:182]''
--------
End Error Message
--------
More information about the rt-users
mailing list