On Thu, Dec 8, 2011 at 14:46, Bart <b...@pleh.info> wrote:
> sub Prepare  {
>     my $self = shift;
>     my $new_value = $self->TicketObj-> FirstCustomFieldValue( 'Teller New' )
> + 5;
>     $self->TicketObj->AddCustomFieldValue(Field => 'Teller New', Value =>
> $new_value, RecordTransaction => 0 );
>     return 1;
> }

You should move all this code into Commit. Don't change objects during prepare.

-- 
Best regards, Ruslan.
--------
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5 & 6, 2012

Reply via email to