[rt-users] Scrips being executed twice for a simple CF update

Jeff Blaine jblaine at kickflop.net
Mon Sep 17 13:26:09 EDT 2012


On 9/14/2012 1:40 PM, Kevin Falcone wrote:
> On Mon, Sep 10, 2012 at 04:57:33PM -0400, Jeff Blaine wrote:
>> Upon modification of one of our custom fields (text area),
>> we want to parse the data, perform a translation on the
>> original data, and store the results in the custom field.
>> With loads of RT::Logger debugging in place, everything appears
>> to be working fine except for the for the fact that the Scrip
>> is being called twice, and it's performing the change ... then
>> UNDOING IT:
>
> I suspect you're running into the processing order of updates on the
> Basics page. You can try making the Scrip TransactionBatch and see if
> that resolves it.

For the record, that seems to have worked.

Thanks Kevin

Jeff

>
> Keep in mind that TransactionCreate scrips don't see all the updates
> done on that page at once, it sees them piecemeal.
>
> -kevin



More information about the rt-users mailing list