Opened 13 years ago

Last modified 12 years ago

#497 new defect

Context is wrong when adding an element in editor

Reported by: justinrowles Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.6.5
Component: General Version: v2.6.3
Keywords: Cc:

Description

When an element is added, an xml fragment is created which looks like:

<root>

<myelement/>

</root>

But it will actually be added in the context of its parent, so it should really be:

<docroot>

<grandparent>

<parent>

<myelement/>

</parent>

</grandparent>

</docroot>

In effect, although we know the context should be /docroot/grandparent/parent/ we provide one with just /root/

This means that the lookup for labelling and help etc can return the wrong content, because the context sensitive lookup will not work and the lookup will failover to any non-context sensitive entry.

Change History (1)

comment:1 by fxp, 12 years ago

Related #122

Note: See TracTickets for help on using tickets.