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

Bart bart at pleh.info
Thu Dec 8 06:31:59 EST 2011


Ok,

Will do a little more adjusting, thanks for the help.

-- Bart


Op 8 december 2011 12:28 schreef Ruslan Zakirov <ruz at bestpractical.com> het
volgende:

> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111208/6f2aa4fb/attachment.htm>


More information about the rt-users mailing list