At Thursday 6/8/2006 07:15 PM, you wrote:
Is there a way to see all of the values stored in $Ticket just for debugging purposes from the template ?

I am having problems calling CustomField values into the template.

I am including this in my templates

{$Ticket->CustomFieldValues('CustomFieldName')}

and i am recieving

RT::ObjectCustomFieldValues=HASH(0x3932cd0)
RT::ObjectCustomFieldValues=HASH(0x3931640)

instead of the values.

Justin,

[apologies for getting your name wrong on my other email!]

Unless you're dealing with a multiple-value CF, you might have better luck with :

{$Ticket->FirstCustomFieldValue('CustomFieldName')}

If you are using a multi-value CF, you'll have to iterate through the ObjectCustomFieldValues collection returned by $Ticket->CustomFieldValues and print each one in turn.

Seeing all the values stored in $Ticket wouldn't help, because technically the CF values aren't stored in $Ticket.

Steve

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html

Reply via email to