Page 1 of 1
Forcing "Update Fixed in Version" when issue is "Resolved"
Posted: 19 Apr 2011, 00:31
by modest
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
Posted: 19 Apr 2011, 06:16
by atrol
You have to write a custom validation function for this
http://www.mantisbt.org/manual/manual.c ... nction.php
Re: Forcing "Update Fixed in Version" when issue is "Resolve
Posted: 20 Apr 2011, 01:20
by modest
And where should I put the custom validation function in the Mantis Code base?
Thanks!
Re: Forcing "Update Fixed in Version" when issue is "Resolve
Posted: 20 Apr 2011, 06:31
by atrol
Re: Forcing "Update Fixed in Version" when issue is "Resolve
Posted: 03 May 2013, 08:42
by Reinder
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"
Re: Forcing "Update Fixed in Version" when issue is "Resolve
Posted: 03 May 2013, 08:54
by atrol
Seems there is a bug in documentation.
Try
Code: Select all
trigger_error( ERROR_VALIDATE_FAILURE, ERROR );
instead of
Code: Select all
trigger_error( ERROR_BUG_VALIDATE_FAILURE, ERROR );
Re: Forcing "Update Fixed in Version" when issue is "Resolve
Posted: 04 May 2013, 19:36
by atrol
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