Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Neos9 ReferenceEditor createNew doesnt work #3732

Open
mhsdesign opened this issue Mar 2, 2024 · 1 comment
Open

BUG: Neos9 ReferenceEditor createNew doesnt work #3732

mhsdesign opened this issue Mar 2, 2024 · 1 comment
Labels
9.0 Bug Label to mark the change as bugfix

Comments

@mhsdesign
Copy link
Member

mhsdesign commented Mar 2, 2024

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: #3731

@mhsdesign
Copy link
Member Author

mhsdesign commented Mar 2, 2024

Also this issue #1764 will reappear, but i will fix this in combination with #3730

This is an expected regression of #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
        }
    }
}

@grebaldi grebaldi added Bug Label to mark the change as bugfix 9.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.0 Bug Label to mark the change as bugfix
Projects
None yet
Development

No branches or pull requests

2 participants