Forcing "Update Fixed in Version" when issue is "Resolved"
Moderators: Developer, Contributor
Forcing "Update Fixed in Version" when issue is "Resolved"
I am using Mantis 1.1.6 on a LAMP platform. Is there a way to make force the user (for example a developer ) to set the field "Update Fixed in Version" when the issue's status is set to "Resolved"? In short can we make the field "Update Fixed in Version" mandatory while closing/resolving the issue?
Re: Forcing "Update Fixed in Version" when issue is "Resolve
You have to write a custom validation function for this
http://www.mantisbt.org/manual/manual.c ... nction.php
http://www.mantisbt.org/manual/manual.c ... nction.php
Re: Forcing "Update Fixed in Version" when issue is "Resolve
And where should I put the custom validation function in the Mantis Code base?atrol wrote:You have to write a custom validation function for this
http://www.mantisbt.org/manual/manual.c ... nction.php
Thanks!
Re: Forcing "Update Fixed in Version" when issue is "Resolve
I tried the example as stated in http://www.mantisbt.org/manual/manual.c ... nction.php.
However, when I trigger an error, I get:
"APPLICATION ERROR #ERROR_BUG_VALIDATE_FAILURE"
And not as expected:
"fixed in version must be set to resolve the issue"
However, when I trigger an error, I get:
"APPLICATION ERROR #ERROR_BUG_VALIDATE_FAILURE"
And not as expected:
"fixed in version must be set to resolve the issue"
Re: Forcing "Update Fixed in Version" when issue is "Resolve
Seems there is a bug in documentation.
Try
instead of
Try
Code: Select all
trigger_error( ERROR_VALIDATE_FAILURE, ERROR );
Code: Select all
trigger_error( ERROR_BUG_VALIDATE_FAILURE, ERROR );
Re: Forcing "Update Fixed in Version" when issue is "Resolve
I fixed it in documentation of MantisBT 1.2.x http://www.mantisbt.org/bugs/view.php?id=15812
http://www.mantisbt.org/manual/ is the documentation for versions 1.0 and 1.1
http://www.mantisbt.org/docs/master-1.2 ... guide.html is the one for current latest stable version
http://www.mantisbt.org/manual/ is the documentation for versions 1.0 and 1.1
http://www.mantisbt.org/docs/master-1.2 ... guide.html is the one for current latest stable version