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

Child Model Object looses Connection on Form saving. #625

Open
neos-bot opened this issue Sep 2, 2014 · 1 comment
Open

Child Model Object looses Connection on Form saving. #625

neos-bot opened this issue Sep 2, 2014 · 1 comment

Comments

@neos-bot
Copy link
Contributor

neos-bot commented Sep 2, 2014

Jira issue originally created by user kaystrobach:

Imagine the following model:

  parent
    ...
    child
      attributeOfChild
      ...

Additionally we assume, that the attribute of the child is an float value, which needs to be converted for output in a form, so we have a form like this:

<f:form action="update" object="{parent}" objectName="parent">
  <f:form.textfield property="child.attributeOfChild" value="{parent.child.attributeOfChild -> f:format.number(decimals:1, decimalSeparator:',', thousandsSeparator:'.')}"/>
  ... save button etc.
</form>

having just VH.fields of parent.child, which properties are set using value, the hidden**identity form field of child is not added to the form. So saving the form, will cause FLOW to insert a new child into parent with the new values instead of changing the existing child ...

Jira-URL: https://jira.neos.io/browse/FLOW-62

@neos-bot
Copy link
Contributor Author

Comment created by @albe:

Could actually be a duplicate, but this one is more generic.

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

No branches or pull requests

2 participants