Page 1 of 1

custom_function_inc override not working

Posted: 05 Jul 2011, 15:49
by jdw2101
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.

Re: custom_function_inc override not working

Posted: 05 Jul 2011, 17:05
by atrol
jdw2101 wrote: My question: Am I doing something wrong (either in the creation of the override function or with the echo statement)?
Use

Code: Select all

die ("Hello here I am");
instead of echo
This stops the whole script and displays the message
If not, you are sure that your code is not executed