[rt-users] adding custom filed value to email

2008-03-27 Thread Gary Gina Koteras
Hello, We are running RT 3.4.5. I created one custom field and would like to add the value that is chosen to the email that is generated. Any help would be greatly appreciated. The custom field name is Locations Thanks in advance, gary

Re: [rt-users] adding custom filed value to email

2008-03-27 Thread Huw Selley
Hi Gene, I saw this fly by and just couldn't help myself trying to optimise it: On 27 Mar 2008, at 16:04, Gene LeDuc wrote: sub get_custom { my $target_name = $_[0]; my $val = $Ticket-FirstCustomFieldValue($target_name); return $val if defined $val; return undef; }

Re: [rt-users] adding custom filed value to email

2008-03-27 Thread Huw Selley
On 27 Mar 2008, at 16:29, Huw Selley wrote: Hi Gene, I saw this fly by and just couldn't help myself trying to optimise it: OK, I suck and actually sent the wrong opto, here is what I wanted to say: sub get_custom { return $val if $Ticket-FirstCustomFieldValue($_[0]) or return

Re: [rt-users] adding custom filed value to email

2008-03-27 Thread Huw Selley
On 27 Mar 2008, at 16:41, Huw Selley wrote: On 27 Mar 2008, at 16:29, Huw Selley wrote: Hi Gene, I saw this fly by and just couldn't help myself trying to optimise it: OK, I suck and actually sent the wrong opto, here is what I wanted to say: And for those that didn't spot the

Re: [rt-users] adding custom filed value to email

2008-03-27 Thread Stephen Turner
Now I suck! $Ticket-FirstCustomFieldValue($field_name); 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

Re: [rt-users] adding custom filed value to email

2008-03-27 Thread Gene LeDuc
I cut my teeth on APL and used to spend hours shaving 7 or 8 bytes from the size of 360 assembly language programs, so I do have an appreciation for efficient and elegant coding solutions. However... several decades later and who-knows-how-many brain cells fewer, I've found that I spend less