as the subject says, I discovered that 'issue_update_validate' is not
called when updating the status of multiple bugs at once (from
bug_actiongroup_page.php) while it is called if the update is done
Is this the expected behaviour or should I file a bug report?
Mantis version 1.0.0rc5
>>> Long version <<<
I have developed a website with a mantis backend, in order to track
the status of users willing to register and participate to a
scientific symposium; their room accommodation status is also tracked
in the same system.
Basically, I customized the issue states in order to have a workflow like:
NEW_ =3D> ACCEPTED =3D> ACCOMMODATED =3D> READY TO PAY =3D> PAYMENT PENDING=
where each user is an "issue". I wrapped some mantis function in order
to manipulate the issues from the website code, giving them a semantic
more consistent with what I am doing.
Now the fun stuff...
I need to perfom some operations on the status transitions: for
example, when the site admin logs into mantis and change the user
(issue) status from NEW_ to ACCEPTED, a mail is sent to the user.
For this purpose, I prepared a
custom_function_override_issue_update_validate function in
custom_functions_inc.php which checks the bug status before and after
the update, and send the appropriate email if needed.
This works flawlessly if the status is updated from
bug_update_page.php, but it does not work if I try to set the status
on multiple bugs with bug_actiongroup_page.php.
Is this on purpose or should I file a bug report?