[rt-devel] Autotake, autoopen and the ordering of events.

J. Sloan js138 at eng.cam.ac.uk
Thu Nov 6 08:29:21 EST 2003


I've been looking at autotake from rt2 and trying to work out why I can't
get it to work on rt3 for a reply submitted via the web interface (it
works fine via email)

As far as I can see the problem is that the status and owner fields of
Update.html get processed after the attachments (which presumably fire off
the relevant scrips) with the result that the ticket gets reassigned back
to Nobody and Open regardless of what scrips might set those values to in
the meantime.

Coping strategies I'm considering in order of complexity (and probably
desirability)

1.  Remove those fields from Update.html - they can be set in other ways.

2.  Reorder Update.html so that ProcessTicketBasics is called before the
attachments are handled (but that may have other ill effects I cannot
predict).

3.  Find some way for ProcessTicketBasics to know when a field it wants to
change has changed between when the update was submitted and when it comes
to set the value.  Something of the lines of 'set value to newvalue if
value is still oldvalue, otherwise bail and moan that a scrip has been
fiddling with value'.

Anyone else have any alternates I should consider?

Thanks

John



More information about the Rt-devel mailing list