<p dir="ltr">Sorry, yes, that one.</p>
<p dir="ltr">There are some "preview" operations that run the prepare code on the assumption that nothing will change. In such circumstances, your custom field would be set even before someone hits the "Update" button. It's always best not to have the Prepare code make any changes.</p>
<p dir="ltr">The "cleanup" box should probably be renamed, since everywhere else it seems to be known as "commit." The distinction would be clearer.</p>
<p dir="ltr">The commit code won't run unless the prepare code returns a true value, so in that box you could write "1;" to ensure that the commit code always runs.<br>
</p>
<br><div class="gmail_quote">On Thu, 22 Jan 2015 9:16 am Kevin Squire <<a href="mailto:gentgeen@wikiak.org">gentgeen@wikiak.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was not aware of this.<br>
<br>
When you say "Commit box", are you referring to the "Custom action<br>
cleanup code" box?<br>
<br>
<br>
<br>
On Wed, 21 Jan 2015 21:35:47 +0000<br>
Alex Peters <<a href="mailto:alex@peters.net" target="_blank">alex@peters.net</a>> wrote:<br>
<br>
> You should move your scrip code from the Prepare box to the Commit<br>
> box. Making changes to tickets in the Prepare stage of a transaction<br>
> can cause unintended side effects and is not recommended.<br>
><br>
--<br>
<a href="http://www.wikiak.org" target="_blank">http://www.wikiak.org</a><br>
<br>
##############################<u></u>##############################<u></u>#<br>
Associate yourself with men of good quality if you esteem<br>
your own reputation; for 'tis better to be alone then in bad<br>
company. - George Washington, Rules of Civility<br>
</blockquote></div>