I am currently using Mantis with the following project organisation :
Project 1
-Sub-project 2
--Sub-Sub-project 3
Project 2
...
I would like to create a custom dynamic field which is displaying the list of all the sub-project and sub-sub-project of a project.
I have made several tests based on : http://www.mantisbt.org/docs/master-1.2 ... STOMFIELDS
And the only test which worked is the following one :
Code: Select all
function custom_function_override_enum_projects() {
$t_projects = project_get_all_rows();
$t_enum = array();
foreach( $t_projects as $t_project ) {
$t_enum[] = $t_project['name'];
}
$t_possible_values = implode( '|', $t_enum );
return $t_possible_values;
}
Is someone got an idea on how I can do ? Or which function I can use ?
Thanks a lot in advance for your help