You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using RelatedItemsWidget or AjaxSelectWidget inside of a DataGridField the values added to a new row are not saved. Values from other subfields (TextLine for example) are saved.
The issue can be reproduced using the following dependencies:
class ICategory(form.Schema):
form.widget('name', AjaxSelectFieldWidget, vocabulary=“your.product.vocabulary")
name = schema.List(
title=_(u'Category'),
required=False,
value_type=schema.TextLine(),
missing_value=[]
)
notes = schema.Text(title=_(Notes'), required=False)
I noticed that the values are getting empty to the GridDataConverter.
The extract function from DataGridFieldObject also returns the new rows with empty values for the subfields that are using the select2 widgets.
The text was updated successfully, but these errors were encountered:
When using RelatedItemsWidget or AjaxSelectWidget inside of a DataGridField the values added to a new row are not saved. Values from other subfields (TextLine for example) are saved.
The issue can be reproduced using the following dependencies:
Steps to reproduce:
Install collective.z3cform.datagridfield and create a content type using this as a datagrid field:
Create the interface schema:
I noticed that the values are getting empty to the GridDataConverter.
The extract function from DataGridFieldObject also returns the new rows with empty values for the subfields that are using the select2 widgets.
The text was updated successfully, but these errors were encountered: