neos-ui
neos-ui copied to clipboard
BUG: reference editor `createNew` only handles hardcoded `title` property but not custom one
As seen here in the code https://github.com/neos/neos-ui/blob/4d1baf9289c020b93fa2683d909d3aa23cc67ee9/packages/neos-ui-editors/src/Editors/Reference/createNew.js#L38 or shown by this issue https://github.com/neos/neos-ui/issues/1764
the createNew option allows to redirect the entered title in a custom property field if titleProperty: 'myTitle' is used. But with the introduction of the node creation handlers, https://github.com/neos/neos-ui/pull/422/ not all data/elements were saved as node properties. Currently only showInCreationDialog: true(promoted properties) or thetitle` property is automagically saved.
See pr https://github.com/neos/neos-ui/pull/2563 where we hardcoded the actual default value of titleProperty.
We should instead, if we want to support the feature, transmit
createNewData:
titleProperty: title
value: fhiewofiewnfoewjf