[rt-users] RT tool & RecordTransaction => 0

Ruslan Zakirov ruz at bestpractical.com
Thu Dec 8 06:28:41 EST 2011


On Thu, Dec 8, 2011 at 14:46, Bart <bart at 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.



More information about the rt-users mailing list