[rt-devel] Scrip using TransactionBatch is run twice
Jeff Voskamp
jeff at voskamp.ca
Fri Oct 9 07:27:54 EDT 2015
On 09/10/15 06:57 AM, Emmanuel Lacour wrote:
> I just discovered on RT 4.0.13 and 4.2.4 (not tested on latest one) that
> creating a scrip with:
>
> condition: "AnyTransaction"
> custom prepare code: "return 1;"
> custom commit code : RT->Logger->debug("test scrip"); return 1;
> stage: Batch
>
> then doing an update on the ticket using /Ticket/Update.html with a
> corespondence and a cf change, the scrip action commit code is run twice!
>
> do I misunderstand something or is this really a bug?
>
Check the ticket history: that update is two transactions: Adding a
comment and changing a CF.
Transaction is from the back end's point of view, not the users.
Jeff
More information about the rt-devel
mailing list