Closed ksuess closed 1 year ago
Used RelatedItemsFieldWidget for a field of a custom Dexterity type.
eventlocation = RelationChoice( title=_(u"Location"), required=True, vocabulary='plone.app.vocabularies.Catalog', ) widget( 'eventlocation', RelatedItemsFieldWidget, pattern_options={ 'selectableTypes': ['bluechurchlocation',], 'basePath': get_locations_base_path, } )
Its not the only field with RelatedItemsFieldWidget.
Field where user can select an object to relate to.
The uid of the former selected and saved related object is displayed
or even worse the uid is not shown:
5.1rc1 (5.1-latest)
select2.js fails in updateSelection https://github.com/plone/Products.CMFPlone/blob/85475602e9e6d0f0861137bdea7b485ae2406e7b/Products/CMFPlone/static/components/select2/select2.js#L3156
I close the issue, because it addresses a Plone version that is no longer supported. If you think this is wrong please reopen the issue and assign a matching milestone.
Also, I think this was fixed long time ago.
BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)
What I did:
Used RelatedItemsFieldWidget for a field of a custom Dexterity type.
Its not the only field with RelatedItemsFieldWidget.
What I expect to happen:
Field where user can select an object to relate to.
What actually happened:
The uid of the former selected and saved related object is displayed
or even worse the uid is not shown:
What version of Plone/ Addons I am using:
5.1rc1 (5.1-latest)
Assumptions
select2.js fails in updateSelection https://github.com/plone/Products.CMFPlone/blob/85475602e9e6d0f0861137bdea7b485ae2406e7b/Products/CMFPlone/static/components/select2/select2.js#L3156