Closed andrewmckaskill closed 9 months ago
Note: this property is present when using the dataPicker inside a content item, just not a ui-builder item.
Angular model of editor when used inside content item:
Angular model of editor when used inside ui-builder item:
Describe the bug I am trying to use Contentment data picker inside UI-Builder. It's failing because it is missing the
DataTypeKey
property inside its editor model.I have validated through debugging that adding this property resolves the issue and allows contentment data-picker to work inside UI-Builder.
Samples:
Data returned by
GetEntityScaffold
api - see "dataTypeKey" is all zeros.The property is not being set inside
Umbraco.UIBuilder.Web.Models.Mappers.ToContentPropertyDisplayModel
When all zeros, it causes Contentment to issue a request to:
/umbraco/backoffice/Contentment/DataPickerApi/GetItems?id=-1&dataTypeKey=00000000-0000-0000-0000-000000000000
which fails with "Unable to locate data source for data type: '00000000-0000-0000-0000-000000000000" as it uses the dataTypeKey to lookup to relevant configuration information.This item has been added to our backlog AB#35772