<br><font size=2 face="sans-serif">I'm having problems with scrips modifying
the values of 2 custom fields.</font>
<br>
<br><font size=2 face="sans-serif">The first custom field is created and
assigned at ticket creation (by scrip X), while the second custom field
is updated whenever the first one is modified (by scrip Y), that is after
ticket creation and also everytime the user modifes the first cf.</font>
<br>
<br><font size=2 face="sans-serif">What sometime happens is that scrip
Y updates the second custom field twice, that  is, a first time assigning
the new value and then a second time setting it back to its original value.
Sometimes instead the same scrips work properly on both custom fields,
assigning the right value also to the second one.</font>
<br>
<br><font size=2 face="sans-serif">The same scrips work always well when
the custom fields are first created and assigned the first value.</font>
<br>
<br><font size=2 face="sans-serif">Comparing the 2 cases in RT log file,
it looks like there's an extra transaction firing after the update of the
second custom field, but I can't tell what it does.</font>
<br>
<br><font size=2 face="sans-serif">The function I call to update the custom
fields is the "AddCustomFieldValue", from Record.pm.</font>
<br>
<br><font size=2 face="sans-serif">The custom fields are defined global
for tickets in all queues.</font>
<br>
<br><font size=2 face="sans-serif">(RT 3.6.1, MySQL 4.1.12)</font>
<br>
<br><font size=2 face="sans-serif">Does anyone have an idea of what to
do to fix this problem?</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">Silvana</font>