If you select just the child, the module does its job, creates a path with the full taxonomies. Then, select the root or parent, and also the child. Then the module just returns the path to the parent, not including the child.

Example, select:

-puschairs x
-- all terrain x

The module will just return in the node: puschair/my-title

Select now just the child:

-puschairs
-- all terrain x

Then the path is right:

puschair/all-terrain/my-title

In some scenarios we need to select both, child and parent, and the right path is obviously the full path.

Files: 
CommentFileSizeAuthor
#1 1978436-rootchild-select.patch2.57 KBurwen
FAILED: [[SimpleTest]]: [MySQL] Invalid patch format in 1978436-rootchild-select_4.patch.
[ View ]

Comments

Title:taxonomy path not correct when selected a child and a parentpatch: taxonomy path not correct when selected a child and a parent
Status:Active» Patch (to be ported)
StatusFileSize
new2.57 KB
FAILED: [[SimpleTest]]: [MySQL] Invalid patch format in 1978436-rootchild-select_4.patch.
[ View ]

and here is the patch. The sql query was too simple, I have added a function to return the deepest child of those selected, so if you select both, root/parent and child, it will return the child as an object $term.

Priority:Normal» Major
Status:Patch (to be ported)» Needs review

Status:Needs review» Needs work

The last submitted patch, 1978436-rootchild-select.patch, failed testing.