Is this type of project hierarchy possible under Mantis?
Hardware
>Red
>Blue
Software
>Red
>Blue
Where each of the sub-projects, Red and Blue, are different projects (and not just links) under the main project Software and Hardware. In short, can I create sub-projects with the same name even if they are to reside under different top level projects?
I just tried doing that and I can get an error saying the project already exists. Is there is a way to get around this?
Sub-projects with same name?
Moderators: Developer, Contributor
Re: Sub-projects with same name?
This a a known issue which is not fixed and where no user provided a patch for it until now http://www.mantisbt.org/bugs/view.php?id=6227
Re: Sub-projects with same name?
This might help :
manage_proj_created.php
"pass parent id"
project_api.php
"pass parent id and check if equal to 0"
Sorry for this is just a pattern and I hope this somehow help you.
manage_proj_created.php
"pass parent id"
Code: Select all
$t_project_id = project_create( strip_tags( $f_name ), $f_description, $f_status, ....., $f_parent_id )
"pass parent id and check if equal to 0"
Code: Select all
if($f_parent_id == 0){
project_ensure_name_unique( $p_name );
}
Sorry for this is just a pattern and I hope this somehow help you.