Good afternoon. I have a structure hierarchy defined for a certain taxonomy. For example.

-Category 1
-- Sub-category 1.1
-- Sub-category 1.2
-Category 2
-- Sub-category 2.1
-- Sub-category 2.2

When i clone this taxonomy for other users the hierarchy is totally lost, so i end up with just parent terms.

-Category 1
-Sub-category 1.1
-Sub-category 1.2
-Category 2
-Sub-category 2.1
-Sub-category 2.2

Any plans to solve this issue? Or you intended for it to work this way?
Thank you in advance.

Comments

trobey’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Category: bug » feature
Priority: Major » Normal
Status: Active » Needs review

In general, the behavior of Private Taxonomy Terms and hierarchical terms is undefined. This is because a hierarchy of terms may not all belong to one user. If a user owns a term but a parent of that term is owned by someone else, should the user be able to view that term without the "View private taxonomies" permission? The code for the different possibilities of permissions is already rather complicated without also dealing with hierarchy.

For this particular issue I think it is pretty safe to maintain the hierarchy when cloning terms. So I have added that feature into the module and checked it into the dev branch. Note that if the parent of a term is not owned by the same user as a term that is being cloned then the behavior is undefined as far as the hierarchy for the cloned terms.

trobey’s picture

Status: Needs review » Closed (fixed)