Quoth JB Segal ([EMAIL PROTECTED]):
> { my @CFlist = ('Product', 'Application Area');
> foreach my $CFname (@CFlist) {
> my $CFvalues = $Ticket->CustomFieldValues($CFname);
> my $OUTPUT;
> while ( my $value = $CFvalues->Next ) {
> $CFName =~ s/ /-/g;
> $OUTPUT .= "X-$CFname: ";
> $OUTPUT .= ($value->Content eq '') ? $value->Content : 'unset';
> $OUTPUT .= "\n";
> }
> $OUTPUT;
> }
> }
>
> but this doesn't work.
>
fixing it so it read
$OUTPUT .= ($value->Content neq '') ? $value->Content : 'unset';
doesn't help, and neither does
$OUTPUT .= $value->Content ? $value->Content : 'unset';
I've reverted to the non-looping version for the weekend. I look forward
to enlightenment on Monday. :)
JB
--
JB Segal 617-886-5575 www.smartertravel.com
Systems/Network Admin. 465 Medford St. Ste 400 www.bookingbuddy.com
Smarter Travel Media LLC Boston, MA 02129 www.tripmania.com
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch
today.
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
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