custom_function_inc override not working

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jdw2101
Posts: 6
Joined: 31 May 2011, 22:32

custom_function_inc override not working

Post 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.
atrol
Site Admin
Posts: 8567
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: custom_function_inc override not working

Post 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
Please use Search before posting and read the Manual
Post Reply