[Rt-devel] Problem with DefaultCustomFieldValue

Andy Harrison aharrison at gmail.com
Mon Feb 28 15:40:46 EST 2005


On Mon, 28 Feb 2005 15:48:39 +0100, Juan Ramón Alfageme Mata
<JRamon.Alfageme at alhambra-eidos.com> wrote:
> I tried swapping both (cleanup and preparation code) I tried too using global and queue scripts alone and together.
> 
> Custom field is global.
> 
> 
> Juan Ramón Alfageme Mata
> +34 91 787 23 00 alhambra-eidos.com

Instead of LoadByNameAndQueue, why not try it this way:

my $CustomFieldsObj = $self->TicketObj->QueueObj->CustomFields();

while ( my $CustomFieldObj = $CustomFieldsObj->Next() ) {
    next unless $CustomFieldObj->Name = "Tipo";
    ....  your SetContent code...
}

-- 
Andy Harrison


More information about the Rt-devel mailing list