Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.4.5
-
Fix Version/s: 7.4-milestone-1
-
Component/s: Model
-
Labels:None
-
Tests:Unit
-
Difficulty:Unknown
-
Documentation:N/A
-
Documentation in Release Notes:N/A
-
Similar issues:
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
-