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

EditView: ManyToOne fields cannot be saved with an empty value #35

Closed
ikostenko opened this issue Feb 10, 2013 · 2 comments
Closed

EditView: ManyToOne fields cannot be saved with an empty value #35

ikostenko opened this issue Feb 10, 2013 · 2 comments
Assignees
Milestone

Comments

@ikostenko
Copy link
Member

Edit any entry in "Orders" domain > De-select "Billing Address":

Expected result: an entry is saved, no value is shown for "Billing Address" field

Actual result: an alert is shown with the following message: "Array index out of range: 1". No exceptions in console

@ikostenko
Copy link
Member Author

@max-dev @aliubunia

@aliubunia
Copy link
Member

Non-optional associations still have to be marked as @NotNull as EntityManager does not throw any exception when nulls are set for such attributes and merged into persistence context. We probably need our own validation schema for handling those cases where JSR-303 is not in use.

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

3 participants