[rt-users] TransactionBatch scrip got fired twice

Daniel Silveira DSilveira at prmg.mpf.gov.br
Thu Sep 29 17:39:03 EDT 2011


Hi,
 
I have the exact same problem with a very simple test-only scrip:
 
Condition:  on a transaction
Action: user defined
Stage: TransactionBatch
 
Action code:
$RT::Logger->info($self->TransactionObj->Id);
 
Every transaction generated fires twice this scrip. If I chage the stage to TransactionCreate, then it works.
 
Logfile:
[Thu Sep 29 19:12:47 2011] [info]: 323732 ((eval 1558):1)
[Thu Sep 29 19:12:47 2011] [info]: 323732 ((eval 1566):1)
[Thu Sep 29 19:12:55 2011] [info]: 323733 ((eval 1582):1)
[Thu Sep 29 19:12:55 2011] [info]: 323733 ((eval 1590):1)
Thank you.
Daniel Silveira
On Thu, Sep 29, 2011 at 11:10:20AM -0400, Xin, Qiao wrote:>Hi,>>I have a scrip to to check when the ticket status changes. If I put it as TransactionBatch mode,>each time I change the ticket status, the scrip got fired twice and there will be dupllicated emails>sent out. I had to use TransactionBatch, since we want an email notification to be sent out when >either>1.  the user use reply and modify the ticket status>2. modify the ticket status>>TransactionBatch works fine when user reply and modify ticket status but got duplicated emails when>just change ticket status.Please show your scrip configuration

-kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110929/18776bff/attachment.htm>


More information about the rt-users mailing list