[rt-users] Custom Fields and Templates
Andy Harrison
ah30 at harrisonfamily.com
Mon Mar 1 15:58:26 EST 2004
I'd like to print out the custom fields and their values in a
template. I'm just trying to get it to print out the CF name first
and I can't even get that far.
{
my $CustomFields = $TicketObj->QueueObj->CustomFields();
while (my $CustomField = $CustomFields->Next()) {
$OUT .= $CustomField->Name . "\n";
}
$OUT;
}
It quits with the following error:
Program fragment delivered error ``Can't call method "QueueObj" on an undefined value at template line 15.
(line 15 is the line with QueueObj in it.)
Stack:
[template:15]
[/usr/local/rt3/lib/RT/Template_Overlay.pm:395]
[/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:402]
[/usr/local/rt3/lib/RT/Scrip_Overlay.pm:345]
[/usr/local/rt3/lib/RT/Scrips_Overlay.pm:196]
[/usr/local/rt3/lib/RT/Transaction_Overlay.pm:118]
[/usr/local/rt3/lib/RT/Ticket_Overlay.pm:3801]
[/usr/local/rt3/lib/RT/Ticket_Overlay.pm:3944]
[/usr/local/rt3/lib/RT/Ticket_Overlay.pm:3318]
[/usr/local/rt3/lib/RT/Interface/Web.pm:949]
[/usr/local/rt3/lib/RT/Interface/Web.pm:1071]
[/usr/local/rt3/share/html/Ticket/Display.html:108]
[/usr/local/rt3/share/html/Ticket/Update.html:196]
[/usr/local/rt3/share/html/autohandler:189]''
--
Andy Harrison
(full headers for details)
More information about the rt-users
mailing list