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

If referencing widget multiple values is set to != UNLIMITED cardinality. #3

Open
dwb17 opened this issue Oct 2, 2015 · 1 comment

Comments

@dwb17
Copy link
Collaborator

dwb17 commented Oct 2, 2015

If the above is true, the module does not seem to work when the assigned values reach the set Cardinality amount.
The Child entity is created, however not assigned to the Parent.
Saving will not do anything, since we can not exceed the set Cardinality value.
Maybe we can have a option to assign the new value to the top of the list, thus "removing" old values as new get inserted.

@KostasBlank
Copy link
Owner

Good point there. I am not sure though what would be the best way to tackle this situation.

Removing references without user approval seems like a bad idea to me.

Why not just display an error message saying that the child entity was saved but was not assigned to parent since the max cardinality has been reached?

Alternatively we can minimise this case altogether if we do not display an add child link if the cardinality is reached. The only way to arrive to that situation would be by typing the GET parameters to the URL.

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

2 participants