Details
-
Bug
-
Resolution: Fixed
-
Major
-
6.4.5
-
None
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
The following:
$services.model.toTree([ $services.model.createDocumentReference('foo', 'One', 'Two'), $services.model.createDocumentReference('foo', ['One', 'Two'], 'Three') ])
generates:
[Wiki foo = [Space foo:One = [foo:One.Two = [foo:One.Two.Three]]]]
because the tree doesn't support having:
- space foo:One.Two
- document foo:One.Two
as sibling nodes. The tree stores the child nodes internally in a map where the key is the entity name, which is "Two" for both the space and the document in our case.
Attachments
Issue Links
- blocks
-
XWIKI-12817 Javascript EntityReferenceTree doesn't support sibling nodes with the same name but different types
- Closed
- relates to
-
XWIKI-12270 Add support for nested spaces in Distribution Wizard report
- Open