[rt-users] Copying CustomFields in templates

Phil Homewood pdh at snapgear.com
Wed Nov 19 21:10:55 EST 2003


Graeme Pyle wrote:
> CustomField-41: {$Tickets{'TOP'}->CustomFieldValues(36)->Next()->Content}
> 
> Unfortunately this fails if the custom field is not set. I assume Next() 
> returns the Perl equivalent of null and then the call to "Content" fails.

The bit in the {} is perl. A suitable conditional in there should
sort you out.
-- 
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh at snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances



More information about the rt-users mailing list