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

One-to-many association: wrong (unassociated) items are added to the nested collectionDatasource #1392

Open
oshiryaeva opened this issue Oct 12, 2018 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@oshiryaeva
Copy link
Contributor

Forum issue
Test project: demo.zip

Environment

  • Platform version: 6.10.1
  • Database: HSQLDB

Description of the bug

Minimal reproducible example

  1. Open demo project
  2. Clients > edit a client
  3. Click Create, create several projects with and without the reference to the edited client

Actual behavior
ALL projects newly created from the client editor are added to the nested projectsDs datasource of the client editor. All these projects are displayed in the projects table with the wrong client. At the same time, they are saved to DB with the correct client.
If you reopen the client editor, the nested projectsDs datasource will contain only the correct projects.

datasource-bug

Expected behaviour
Only the projects with the reference to the edited client are added to the nested projectsDs datasource of the client editor. All others are just saved to the DB.

@oshiryaeva oshiryaeva added the type: bug Something isn't working label Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants