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

ElementNode is unset in fusion context #66

Open
jakob-LIS opened this issue Mar 9, 2020 · 0 comments
Open

ElementNode is unset in fusion context #66

jakob-LIS opened this issue Mar 9, 2020 · 0 comments

Comments

@jakob-LIS
Copy link

Some flow queries on the elementNode do not work. It appears that the elementNode is unset on reload of the node. To give an example the following throws an error when changes on the element are saved in the Neos backend:

prototype(Neos.Form.Builder:NodeBasedFormElement) {
    element {
        condition = ${q(elementNode).parents('[instanceof Neos.Form.Builder:NodeBasedForm]').find("[instanceof Neos.Form.Builder:FormElement][label='" + elementNode.properties.label + "']").is()}
    }
}

(The example above is simplified for clarity. I originally used this in a Neos.Fusion:Case)

The following error is thrown:

No operation which satisfies the runtime constraints found for "parents".

Apparently the elementNode is missing from the fusion context for the OutOfBandRendering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant