neos-ui icon indicating copy to clipboard operation
neos-ui copied to clipboard

BUG: Neos9 `ReferenceEditor` `createNew` doesnt work

Open mhsdesign opened this issue 1 year ago • 1 comments

Steps:

add this to Neos.Demo:Content.BlogPostingList

  properties:
    blogs:
      ui:
        inspector:
          editorOptions:
            createNew:
              path: /<Neos.Neos:Sites>/neosdemo
              type: 'Neos.Demo:Document.Blog'
              titleProperty: 'title'

server exception

Warning: Undefined array key 1 in /Users/marchenryschultz/Code/core/neos-manufacture-90/Packages/Neos/Neos.Neos/Classes/FrontendRouting/NodeAddressFactory.php line 76 - Check the logs for details

reason, we currently wrongly compose the node address in the client. This is an error of this kind, which might exist in other places as well: https://github.com/neos/neos-ui/issues/3731

mhsdesign avatar Mar 02 '24 18:03 mhsdesign

Also this issue https://github.com/neos/neos-ui/issues/1764 will reappear, but i will fix this in combination with https://github.com/neos/neos-ui/issues/3730

This is an expected regression of https://github.com/neos/neos-ui/pull/3519 since i accidentally removed the Classes/NodeCreationHandler/ContentTitleNodeCreationHandler.php

and the payload probably should look like

payload: {
    nodeType: this.props.options.createNew.type,
    data: {
        title,
        'ReferencesEditor:CreateNew': {
            titleProperty: this.props.options.createNew.titleProperty || 'title',
            value: title
        }
    }
}

mhsdesign avatar Mar 02 '24 18:03 mhsdesign