[rt-users] Multiple Values don't show in email header using CustomFieldValuesAsString

matt schneider mschneidy11 at gmail.com
Wed Jun 6 19:32:49 EDT 2012


> Hi,
>
> I have a few custom fields that I display in my autoreply template email
> header when a user creates a tickets.
>
> This works fine and dandy when it's grabbing the Custom Fields via
> {$Ticket->FirstCustomFieldValue('CF Name');}, but one of the CFs is of type
> "select multiple values"/ render type "List". If I select this field via
> FirstCustomFieldValue, then only the first value in the field will be
> selected, but I have up to 4 that I need to show, so this is no good.
>
> I've noticed in the body of the email I can display all the values in this
> field by using CustomFieldValuesAsString, and this works fine.
>
> However, if change Subject: to {$Ticket->CustomFieldValuesAsString('CF
> Name');}, the email doesn't even get sent out! I get this error in RT: [Wed
> Jun  6 15:21:03 2012] [error]: error:    couldn't parse head; error near:
> ID1 (/opt/rt4/sbin/../lib/RT/Template.pm:363)
>
> ID1 is the first custom value that is selected ( out of 4 ).
>
> Is there any way of getting around this?
>
> Cheers,
>
> Matt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120606/d5471345/attachment.htm>


More information about the rt-users mailing list