I'm trying to validate a custom field value when the user attempts to update a defect. In order to do this, I have created a custom function using the following procedure:
1) I copied the function function custom_function_default_issue_update_validate(...) from the file custom_function_api.php.
2) I pasted the function in new file called custom_functions_inc.php and renamed the function to custom_function_override_issue_update_validate(...
3) I put the custom_functions_inc.php in the directory: .../mantisbt-1.2.5
4) Inside the customized ...issue_update_validate, for now, I simply put an "echo" statement to ensure that the new function was called. It apparently is not because I see no echo message anywhere.
My question: Am I doing something wrong (either in the creation of the override function or with the echo statement)?
I'm using Mantis 1.2.5.
Thanks in advance.
custom_function_inc override not working
Moderators: Developer, Contributor
Re: custom_function_inc override not working
Usejdw2101 wrote: My question: Am I doing something wrong (either in the creation of the override function or with the echo statement)?
Code: Select all
die ("Hello here I am");This stops the whole script and displays the message
If not, you are sure that your code is not executed