We are aware of this topic and designed our scripts accordingly.
I realized that we sometimes used Exception instead of UserMessageException but that had no influence on our problem.
I will try to state our problem more clearly:
- We have several user-defined fields, some can only be edited in the task, some can be changed via a message
- We use "Add Message / BEFORE Trigger" to hook up our validation scripts
- When the user submits a message and the script throws an exception all user-defined fields are beeing reset to their default values
For example, we have a memo udf "Internal Information".
It already has some content and the user adds info to it, writes a message text and submits. He forgets to enter the actual time, so our validation script throws an exception.
Now all text in the memo udf is lost.
If the user realizes this, he can restore the old content from the task data below and hopefully can remember what he added.
If the user fails to realize the lost info, he only enters the actual time, submits and the data in the udf-memo is lost completely.
To ensure that the problem is not caused by our validation script, we used one of the example scripts you provided in your documentation.
(from here:
http://www.trackstudio.com/documentatio ... ggers.html)
The problem still occured.
I fail to see a configuration misstake on our side, yet if it is indeed a mistake on our behalf I'd appreciate your help in correcting it.
I am sure you can imagine how frustrating such a problem can be.
Thanks in advance.