plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
254 stars 191 forks source link

Related items field does not handle navigation root correctly #3436

Open laulaz opened 2 years ago

laulaz commented 2 years ago

What I did:

I created a "Navigation root folder" with INavigationRoot interface. Inside that root, I created some content and I try to use the related items field.

related_items

What I expect to happen:

I should not be able to select a content outside the navigation root. Or, if I am allowed to select a content outside the navigation root, it should work.

What actually happened:

I can select a content outside the navigation root, but it generates a field error : Wrong contained type.

What version of Plone/ Addons I am using:

buildout.coredev, 6.0 branch

yurj commented 2 years ago

this are some findings by me: https://discord.com/channels/786421998426521600/787254601656827924/913696217148567553

you can read @Rudd-O findings here: https://github.com/plone/Products.CMFPlone/issues/3379

Some @thet explainings: https://github.com/plone/mockup/issues/795#issuecomment-332771918