Sub-projects with same name?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
modest
Posts: 46
Joined: 11 Apr 2011, 18:27

Sub-projects with same name?

Post by modest »

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

Re: Sub-projects with same name?

Post by atrol »

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
Please use Search before posting and read the Manual
monn
Posts: 17
Joined: 16 Feb 2011, 03:20

Re: Sub-projects with same name?

Post by monn »

This might help :

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 )
project_api.php
"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.
Post Reply